web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / trying to play a video...
Power Apps
Unanswered

trying to play a video from a sharepoint site

(0) ShareShare
ReportReport
Posted on by 6
I have created an app that has buttons on the front page and when you click on a button it is supposed to navigate through folder paths in a sharepoint site in order to play how to videos within those folders.
-I have buttons on (screen 1) example equation #1.
-I also have a gallery created, example equation #2.
-When the gallery filters, there is a video icon2 next to each of the video titles. When you click the video icon, I want to play the video in the video1 container. Icon2 example equation #3
-and I have a video1 container created, example equation #4
The buttons are navigating correctly. The gallery is filtering correctly. But when I click on the video icon2, it will not play the video in the video1 container.
Reference the example equations below and please advise as to what I am doing wrong.
 
#1 - Set(varselect,"Video Library/Published Videos/Toyota Systems/Maximo/");Navigate('PublishedVideos'); Set(varTag,"Maximo");
 
#2 - If( !IsBlank(varselect), Sort( Filter( 'Video Library', IsFolder = false && StartsWith('Folder path', varselect) ), Name, SortOrder.Ascending ), Filter( 'Video Library', IsFolder = true ) )
 
#3 - Set(varSelectedVideo, galVideos.Selected.'Folder path')
 
#4 - If(!IsBlank(varSelectedVideo), varSelectedVideo, "" )
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
     
    Before we go to far, I would suggest the following.
     
    Add a large label to your screen. Feel free to make it word wrap for sure.
    Then place the exact combination of variables you are using to get the full video path.
     
    I do not believe the path gets your the video name at least not what you are grabbing, unless you are specifically putting it there and saving it as a URL, which I actually do not recommend, because urls can be so much longer now, I use a multi-line to save URLS (unless I am positive of the size).
     
    If you grab the URL out of the List, does it work right away? Or does some other column have the File Name and you are just forgetting to append /name to it link in the app?
     
    Let's quickly validate that its correct. You can easily grab it from the Label and then just pop it in your browser. This will tell us what part of the URL is wrong.
     
    Also, permissions wise, are these video/image/file Columns or a Library of Recordings?
  • DR-18061702-0 Profile Picture
    6 on at
    this is a library of recordings found in a folder in the sharepoint site. 
  • DR-18061702-0 Profile Picture
    6 on at
    Also, since I am just learning power apps, is there a good power apps, instructor-led course that I can take through Microsoft to help me think along the lines of writing correct code?
     
  • Vaish123 Profile Picture
    136 on at
    Set(varSelectedVideo, galVideos.Selected.'Link to item') will play the video in the video tool inside PowerApps. 

    When clicks on a button to redirect to sharepoint and play., then write code onSelect of button: 
    Launch("https://xx.sharepoint.com/sites/dev/" & varSelectedVideo)
     
    Set(varSelectedVideo, Gallery1.Selected.'Full Path'); will give the path from library folder. 
  • DR-18061702-0 Profile Picture
    6 on at
    ok. I am still confused a bit. when I tried replacing with your equations, everything broke. I am attaching a screenshot of my treeview. please reference with your equation suggestions for me to understand more clearly.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard