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 / Playback audio from Sh...
Power Apps
Unanswered

Playback audio from Sharepoint library in gallery

(0) ShareShare
ReportReport
Posted on by 1,304

Hey all

 

i have created an app that allows the user to record, preview and save an audio recording to a Sharepoint document library

 

i then have another screen with the gallery which includes the name of the file plus an audio control. Problem is whatever I replace in the audio control Media function I cannot get the audio for that gallery item to play. 

any ideas greatly received. 

thanks

 

 

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    If the audio control is in the gallery then the audio control media property would be ThisItem.'{Link}'

     

    If you need this to work on a mobile device then you might have issues because the link is to a file on SharePoint, so it will need to authenticate to access the file.

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi@Jondoesflow,

    Based on the issue that you mentioned, do you want to play the audio file using the audio control?

    Actually, the Audio recorded through is stored in 3gp format in Android, AAC format in iOS, and OGG format in web browsers.

    If you want the generated audio file to be played well in any other devices, I afraid that there is no way to achieve your needs in PowerApps currently.

    If you just want to achieve your needs in Web browser, I think PowerApps could achieve your needs.

    I have made a test on my side, please take a try with the following workaround:

    Here is the configuration of the flow.

    3.JPG

    Within the "Create file" action, File Name field set to following expression:

    concat(utcNow(),'-audio.wav') 

    File Content field set to following expression:

    base64ToBinary(triggerBody()['Createfile_FileContent'])

    Set the OnEnd property of the Audio control to following:

    Set(tempJSONString, Substitute(JSON(Microphone1.Audio, JSONFormat.IncludeBinaryData),"""",""));
    'YourFlowName'.Run(Right(tempJSONString, Len(tempJSONString)-23));
    Refresh(YourSPLibrary)

     Hope it could help.

    Regards,

    Qi

  • Community Power Platform Member Profile Picture
    on at

    Use the PowerApps v2 trigger, it now supports Files

     

    Power Apps Easiest Way To Upload Files To A SharePoint Document Library (matthewdevaney.com)

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard