facebook

Get alert after finished play sound

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Muhammad
    Member

    After play this jPlayer, I want to do something like alert.

    phoneui.activeAudioPlayer("#m1-index4-audio3-container").jPlayer("setMedia", { mp3: mp3file });

    Is this code correct?

    phoneui.activeAudioPlayer("#m1-index4-audio3-container").jPlayer("setMedia", { mp3: mp3file });
    
    $("#m1-index4-audio3-container").bind('ended', function() {
    
    alert("Song has stoped");
    
    });

    But, i didn’t get alert.
    Please advice.

    Thank you.

    #342804

    Muhammad
    Member

    Solved it!

    phoneui.activeAudioPlayer(“#m1-index4-audio3-container”).bind(“ended”, function(){

    alert(“test”)

    });

    #342843

    Hi Muhammad,

    Thanks for sharing your solution. Thread closed.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Get alert after finished play sound

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