Search code examples
javascriptjqueryjplayer

Check if jPlayer is stop


How can i determine if jPlayer has stop? I wanted to throw an event or alert when ever jPlayer has stop.

$("#jquery_jplayer_1").jPlayer({
    stop: function () {
        alert('Player has stop');
    }
});

Solution

  • You want the pause event. If you read the documentation, it says all events. http://jplayer.org/latest/developer-guide/#jPlayer-events

    $("#jquery_jplayer_1").jPlayer({
        pause: function () {
            alert('Player has stop');
        }
    });