cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PaulD1
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
v-monli-msft
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
v-monli-msft
Community Support
Community Support

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.

View solution in original post

Thanks @v-monli-msft

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,416)