Search code examples
jqueryjplayer

jQuery jPlayer - How to stop all players before playing a new one?


I need to stop all other instances of jPlayer before playing a new one when i click play.

Thanks for you help.


Solution

  • SOLVED

    just assigned onclick function to the play trigger and the functions does:

    
    function stopall(){
        $(".jplyrselectr").jPlayer("stop");
    }