0
Besvaret

stopping a particular audio clip?

Clint Sutton 11 år siden opdateret af Alin Alexandru Matei 11 år siden 0
Hi guys,

I want to play or stop a particular audio clip on another page.  I have a button on the cover page that I want to make a tap action that will switch the audio on or off on another page.  So that when I go to the next page, that audio will or wont play depending on the changing from the cover page button.

This audio is not a narration attached to highlighting text, it's just a clip that plays when an image appears on that page. Image action - playaudio

Thanks
Clint

Svar

Svar
Besvaret
Hello Clint, here is a sample app for this situation:
368 - Audio Stop.zip
For this situation you will need an App Counter. In this example the audio on the second page will play when the App Counter value is 1. So for On element I added a Counter Set for the app counter to set it's value to 1 ( also this is invoke on page load, in case you want the audio to be available by default when the user opens the app) and the Off element have a Counter Set for the app counter to set it's value to 0 so the audio doesn't play. On the second page I have a graphical element with 2 behaviors: a Show behavior for itself and a Play Audio behavior both invoked on page load and with a condition: App Counter Value is 1. 
Let us know if you need anymore help. Thank you for your feedback.
Besvaret
Hello Clint, here is a sample app for this situation:
368 - Audio Stop.zip
For this situation you will need an App Counter. In this example the audio on the second page will play when the App Counter value is 1. So for On element I added a Counter Set for the app counter to set it's value to 1 ( also this is invoke on page load, in case you want the audio to be available by default when the user opens the app) and the Off element have a Counter Set for the app counter to set it's value to 0 so the audio doesn't play. On the second page I have a graphical element with 2 behavior: a Show behavior for itself and a Play Audio behavior both invoked on page load and with a condition: App Counter Value is 1. 
Let us know if you need anymore help. Thank you for your feedback.
Svar
Besvaret
Hello Clint, here is a sample app for this situation:
368 - Audio Stop.zip
For this situation you will need an App Counter. In this example the audio on the second page will play when the App Counter value is 1. So for On element I added a Counter Set for the app counter to set it's value to 1 ( also this is invoke on page load, in case you want the audio to be available by default when the user opens the app) and the Off element have a Counter Set for the app counter to set it's value to 0 so the audio doesn't play. On the second page I have a graphical element with 2 behaviors: a Show behavior for itself and a Play Audio behavior both invoked on page load and with a condition: App Counter Value is 1. 
Let us know if you need anymore help. Thank you for your feedback.

Kundesupport af UserEcho