It out in [Music] action the new stream control requires the stream URL to add a stream video to your canvas.
App I have a document library in SharePoint where I have hosted some video files I'll select a specific video this was open in Microsoft.
Stream I need the stream URL to get that I'll head over to share click embed code here the source attribute has the code all you have to do is copy the code.
All the way up until the unique ID property copy this head back to my power app stream URL L under double quotes I'll paste the link as long as the user running the.
Power app has access to that specific stream video that's linked the stream control will load the video and I can play the video directly in the canvas power.
App you get all the video controls you also get details about the video from stream comments video settings video analytics and.
More I can also share this right here from the control experience itself now in this library of mine called videos I have four video files in my power app I would like to.
Build a video gallery first I'll connect to SharePoint connect to my SharePoint site I'll select my document Library.
Called videos and connect so I have a connection to my videos library in my screen.
Container I'll go and insert a vertical gallery and connect this to my videos Library I have an image control the image property for this I can use.
Posts Related:
- Relatório semanal, mensal e anual do Excel Office
- How to Design Cover Page in MS Word DIY Tutorial
- Reporting Services (SSRS) Part 5 - Controlling the number of rows per page
This item do
Thumbnail dot I'll use the large version of the thumbnail for videos that you upload in SharePoint SharePoint itself generates.Thumbnails and since this is a gallery control I can select a specific file from my gallery now for a selected file I I would like the stream control.
To show that specific video so I'll go and add the stream Control stream URL stream URL is not a property that the document Library exposes out of the.
Box I do need the metadata for stream ID to be available in this Library so I can use that value to frame the URL for embedding the video In The Stream control and power.
Apps so for that I'll add a text column I'll call this unique ID this is where I would like to put that value now one option is open the video.
In stream go to share embed and get the the unique ID and I can put that value in this column however I would want this process.
To be automated and for automation we can leverage power automate I'll go and create an automated Cloud.
Flow that triggers when a file file is created in SharePoint I'll give the flow a name and click create the flow should.
Trigger when a file is created in my videos Library I need the unique ID that is not available as a property but we can get that by leveraging.
The send an HTTP request to SharePoint
Action we'll use a rest API call to get that ID I'll pick my SharePoint site the.URI will be API web lists get by title in single quotes I'll put the name of my document Library slash items under brackets I need to put the ID of.
The newly created file I can get that from Dynamic content property ID question mark dollar select I'll select the file property and.
From here get me the unique ID of the file and file is a complex type column so I'll have to expand it as well ENT dollar expand is equal to file this will give me the unique ID.
Which is what I need to frame that stream URL and Next Step I'll add an action update file properties.
SharePoint connect to my SharePoint site connect to my videos Library unique ID will come from my trigger click show all the column I created is called unique.
ID here I'll go and plug in an expression the expression will be body bracket under single Cotes send an HTTP request to.
SharePoint exactly the same name case sensitive as my send an HTTP request to SharePoint action for spaces I'll put an underscore question mark under square bracket single quotes.
D question mark under square brackets single quotes file question mark unique ID expression is done I'll click add my flow is complete I'll click.
Save the flow has saved and is ready to go I'll upload a few video files I have uploaded three files my flow has triggered you can see how the unique IDs.
Are automatically populated back to my power app I'll refresh the connection to my videos Library since I added that new column which is unique.
ID my gallery is set my stream control URL is what I need to plug in now for a specific video copy this URL up until unique ID and in my power app I will paste it.
In double codes in the stream URL property unique ID is what I would like to get dynamically based on an item selected in the gallery so I'll remove the hardcoded.
Buid here for Unique ID put an erson concatenate this string with my gallery control which is Gallery one in my case do selected Dot unique.
ID now if I preview you will note as I select a specific video The Stream control will load that specific video and allow me to play it right here in the power.
App and we can expand on this experience I have a document Library called video Hub that has video files I have a column for title that I have populated with.
Metadata I also have a choice column called category so I can categorize my videos stream ID is that unique ID that I am dynamically generating with the flow and here I have my power app that.
Is connected to that Library this is my video portal where users can play the videos directly in line in the canvas power app this works on the browser experience.
As well as on mobile devices I have leveraged the categorization as filters on the gallery So based on the tags that are provided for the video when the user makes a.
Selection for that specific category the gallery filters the result and if I click play it will play the video In The Stream.
Player and we can style this and Design This in different ways since we are in the canvas power apps world and we have full flexibility to design our power app if you enjoyed this video then do.