autoPlay : Boolean : Will auto-play when instanced on the page, and when a new playlist is given using setPlaylist()[...]
$("#jquery_jplayer_1").jPlayer({ ready: function () { $(this).jPlayer("setMedia", { m4a: "http://www.jplayer.org/audio/m4a/Miaow-08-Stirring-of-a-fool.m4a", oga: "http://www.jplayer.org/audio/ogg/Miaow-08-Stirring-of-a-fool.ogg" }); }, play: function() { // To avoid both jPlayers playing together. $(this).jPlayer("pauseOthers"); }, repeat: function(event) { // Override the default jPlayer repeat event handler if(event.jPlayer.options.loop) { $(this).unbind(".jPlayerRepeat").unbind(".jPlayerNext"); $(this).bind($.jPlayer.event.ended + ".jPlayer.jPlayerRepeat", function() { $(this).jPlayer("play"); }); } else { $(this).unbind(".jPlayerRepeat").unbind(".jPlayerNext"); $(this).bind($.jPlayer.event.ended + ".jPlayer.jPlayerNext", function() { $("#jquery_jplayer_2").jPlayer("play", 0); }); } }, swfPath: "js", supplied: "m4a, oga", wmode: "window" });