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
Highlighted
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

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.

View solution in original post

Highlighted
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,886)