facebook

Audio repeat?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #347965 Reply

    Uplink1001
    Member

    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.
    #347967 Reply

    Brandon
    Member

    Im just guessing on this. But I would think you dont have to do a setMedia call each time. I would only do it on the initial play. Then use just the pause (no setMedia). That my be messing it up. Again, just a guess as I am not at a dev system.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Audio repeat?

You must be logged in to post in the forum log in