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