stop playing audio file

Philipp shared this problem 2 years ago
Known

Now with Version 7.9.0 we can play sounds. Even with mobile devices. Thats great!


I start playing if var = 1. That works fine!


Now i would like to STOP playing the audio if var = 0. How can i do that?

Comments (4)

photo
2

I solved it with a workaround. On Page Load i toggle (1, 0) each second a var called trigger. then i check on var change trigger if var siren is 1 or 0. If siren = 1 => play siren.mp3 which plays the audio for 1s. for repetitive audio files this workaround works.


But i hope there will be soon a function stop audio playing. I also miss the function "do while"...

photo
2

Hi Phillip,


Nice workaround. Regarding the stop audio playing I have already notified your suggestion to our development team so they can take into account for future updates.


Best,


Sonia Durán

photo
1

auto playing audio seems not working on mobile devices with on page load or on var change...


it works only on tap an then you can't stop it !

photo
1

Hi Phillip,


Unfortunately it's a bug that will need to be solved by our engineers on future updates. Thank you for taking the time to report this and sorry for any inconvenience.


Best,


Sonia Durán

photo