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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Music App: Unable to P...
Power Apps
Unanswered

Music App: Unable to Play Multiple Songs from a List

(0) ShareShare
ReportReport
Posted on by

I want to create an application that allows me to play mp3 audio files from SharePoint lists in PowerApps. I have loaded 5 audio files into the SharePoint list, but the issue is that when using the "audio" feature in PowerApps, the application only plays one audio file, and not the others, unless I manually select another audio track. However, my goal is for the application to play all the audio files randomly, meaning that when one song ends, it automatically plays another song from the SharePoint list randomly. Unfortunately, I haven't been able to achieve this.

Categories:
I have the same question (0)
  • M_Ali_SZ365 Profile Picture
    1,110 on at

    Hi @DAvid53 

    Getting Your Songs Ready to Play:

    1. Connect to Your SharePoint List: Make sure your app can see the list where you've got your MP3s.

    2. Pull the Songs into the App: When your app starts, pull in the list of songs into a collection (think of it as a basket of your songs inside the app):

     

    Collect(MyMusic, SharePointList)

     

    Making Songs Play Randomly:

    1. Randomize the List: You'll need to set up something to pick a song at random. There's no built-in "shuffle" button, so you'll be using a formula to pick a song by, say, its row number in the list.

    2. Check When a Song Ends: PowerApps doesn't tell you when a song is done, but you can be clever with a timer. Set a timer to keep an eye on the song's progress—when it sees the song is at the end, it's time for the next one.

    3. Play the Next Song: When the timer says the song is finished, your app should grab another song from your shuffled list and start playing it.

    4. Keep It Going: Set everything up so once a song ends and the next one plays, the timer resets and gets ready to do it all over again for the next song.

    Here's a nudge in the right direction for the formula to pick a random song:

     

    Set(CurrentSong, LookUp(MyMusic, ID = RandBetween(1, CountRows(MyMusic))).URL)

     

    Please accept this solution if it resolves the issue. ✅
    Best regards,
    Muhammad Ali

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard