cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TGrounds
Level 8

How do I update the MEDIA control on a Video from a value in a database field?

The only documentation I was able to find around multimedia, specifically video, was a note in the user documentation that says: "Play a YouTube video by setting the Media property of a video control to the appropriate URL, enclosed in double quotation marks."  

 

My entire PowerApp is data driven and all values come in from SharePoint lists.  I have the URL in a field in my list but I'm not able to come up with a way to concatenate the required "URL" inserting the field from my data and place it in the MEDIA control in my App. (or including the " " around the URL in my data).  It doesn't appear that I'm able to set this control with a variable, only what is available in the multimedia area of PowerApps or a fixed URL in double quotes.  I'm doing this with Images and need to be able to do it with videos as well.

 

Has anyone tried this and been successful?

 

Thanks- 
Tom.

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: How do I update the MEDIA control on a Video from a value in a database field?

You can use the URL for a video from a data source as well. For example, if you have an Excel table like this one:

ForumPost001.png

Then you can bind the table to a gallery, for example, and have a video control whose Media property references the selected item of the gallery:

Gallery1.Selected.Video

The attached file shows an example of this.

 

View solution in original post

2 REPLIES 2
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: How do I update the MEDIA control on a Video from a value in a database field?

You can use the URL for a video from a data source as well. For example, if you have an Excel table like this one:

ForumPost001.png

Then you can bind the table to a gallery, for example, and have a video control whose Media property references the selected item of the gallery:

Gallery1.Selected.Video

The attached file shows an example of this.

 

View solution in original post

TGrounds
Level 8

Re: How do I update the MEDIA control on a Video from a value in a database field?

Thank you SO MUCH!  My video object is in a gallery - I flip between Image and Video depending on which value is in the table.  I was trying to use the ThisItem.video method and it wasn't working.  I created a text object called 'VideoContent' in the gallery that isn't visible and bound that to ThisItem.video from my SharePoint list.  I then then referenced 'VideoContent' in the 'Media' value on the control and that worked.  Obviously I was too close to it when I posed the question thanks for making me think about it in a different way.

 

Thank you so much!

Tom.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,996)