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 / Audio file not playing...
Power Apps
Unanswered

Audio file not playing on first screen.

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have created an app and have an audio file which I want to play when the first app screen is visible. Currently the audio file plays for some users when they open the app and not for other users and I cannot work out why it only works for some users.

 

The audio file is set to play when varIntro: true. I have set the onvisible property of the first screen to: UpdateContext({varIntro: true}) so whenever the first screen is visible the audio file should be playing. When a user navigates away from a screen I have UpdateContext({varIntro: false}).

 

If I open the app in Edit mode the audio file plays immediately. If I open the app in play mode the audio file does not play unless I navigate away from screen 1 and navigate back to screen 1.

 

For the audio file I currently have the following settings:

Start = varIntro

AutoStart = true

Loop = false

 

Thanks,

 

Freddie

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Sorry I should also say: I thought originally the file wasn't playing because it didn't have time to load. So I used a timer function and got the sound to play once the timer reached 10 seconds. This still didn't work for some users the first time they open the app.

  • v-siky-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    I would suggest you change to use global variable instead of update context variable, and then put the code 'Set(varIntro, true)' to the App.OnStart property since you want the audio file play in the first screen.

     

    Hope this helps.

    Sik

  • Community Power Platform Member Profile Picture
    on at

    Hi Sik,

     

    I have tried using a global variable and it still is not working. As I mentioned, it works for some users and not for other users. Do you have any other suggestions?

     

    Thanks,

     

    Freddie

  • v-siky-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    It's hard for me to reproduce this issue. I haven't manage to that.

    I would suggest you submit a Support Ticket to Microsoft for further assistance.

    Get Help + Support 
    Sik

  • Community Power Platform Member Profile Picture
    on at

    @Sik  no problem at all. Thanks for helping 🙂

  • DavidBowdish Profile Picture
    38 on at

    I am seeing the same issue. This app was working, but suddenly stopped firing the audio file. 


    Did anyone find a fix?

  • Community Power Platform Member Profile Picture
    on at

    Hi David,

     

    I have not found a fix yet. And no one has suggested one. 

     

    Thanks,

     

    Freddie

  • DavidBowdish Profile Picture
    38 on at

    I am working with Microsoft engineers directly to investigate this issue. If we determine a solution, I will come back and post it. {shrug}

  • DavidBowdish Profile Picture
    38 on at

    This issue appears to be limited to Chrome and Chromium browsers like Edge.

    The first round of investigations seem to point to a security feature that prevents the playing of an audio file until the user interacts with the app. So, if an OnStart(), or an OnVisible() called from the OnStart(), attempts to play an audio file before another control is acted upon, the audio file will not play.

    This seems logical, but I am also having a similar issue with a Timer control. I will post if Microsoft comes up with a valid work-around or solution.

  • andersonpimente Profile Picture
    11 on at

    @DavidBowdish, this seems to be exactly what's causing the issue: as soons as users clicks something, the audio starts playing.

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