HI.
Have a small demo of Audio play and pause…
Where am i going wrong.
when i press play then pause all working fine. but only for 3 times. if i pause it for the 3rd time then try to start it again, nothing happens.. no sound?
just using an audio file of a 100bpm beat.
i have a hidden Audio widget with no sound file attached to it on the screen below the start button.
For the start button i have the following on the on click run javascript
var audioWidget = AudioPlayerWidget.fromWidget(‘m1-BPMcounter-audio1-container’);
audioWidget.setMedia(‘100bpm.mp3’);// change to your sound file name
audioWidget.play();
Then the pause button has: on click run javascript
var audioWidget = AudioPlayerWidget.fromWidget(‘m1-BPMcounter-audio1-container’);
audioWidget.setMedia(‘100bpm.mp3’);// change to your sound file name
audioWidget.pause();
how do i get it to continue (play) more than 3 time?
i have ticked the reapeat button on the properties for the audio1 widget.??
Thanks
Uplink1001
Attachments:
You must be
logged in to view attached files.