cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

Audio Player - delay move to new screen / continue playing while moving to new screen

I'm experimenting with some audio feedback for my apps - i.e. verbal confirmation of the details of a record being saved (in this case, a booking being made).

 

When the user saves (patches) I'm using the translator connector to perform text-to-speech to confirm the details audibly, however the app should also navigate to another screen after the save. Once the app moves to another screen, the audio will not longer play.

 

Is there any way of delaying the navigation until the audio is complete, or of continuing the audio onto the following screen if it has not completed before the navigation?

 

I have a work-around at the moment that involves putting an audio player control on each screen, but a less resource-intensive solution would be preferable.

 

Thanks!

Paul

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Audio Player - delay move to new screen / continue playing while moving to new screen

Hi @PaulD1,

 

Yes, this can be achieved. You can set the OnSelect property to the button to:

Patch(...,...,....);UpdateContext({Var:1})

Then set the OnEnd property of the Audio control to:

If(Var=1,Navigate(Screen2,None))

After this, only when the Patch button is first selected and then audio has played to the end, it will auto-navigate to the next screen.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Audio Player - delay move to new screen / continue playing while moving to new screen

Hi @PaulD1,

 

Yes, this can be achieved. You can set the OnSelect property to the button to:

Patch(...,...,....);UpdateContext({Var:1})

Then set the OnEnd property of the Audio control to:

If(Var=1,Navigate(Screen2,None))

After this, only when the Patch button is first selected and then audio has played to the end, it will auto-navigate to the next screen.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User
Super User

Re: Audio Player - delay move to new screen / continue playing while moving to new screen

Thanks @v-monli-msft

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Tomorrow, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 117 members 3,823 guests
Please welcome our newest community members: