Mr_Nizzle Mr_Nizzle - 3 months ago 35
jQuery Question

How to disable jQuery.jplayer autoplay?

when i initialize the player like this:


$("#jquery_jplayer").jPlayer({
ready: function () {
this.element.jPlayer("setFile", "/previews/cancion.mp3", "/previews/horse.ogg").jPlayer("play");
},
volume: 50,
oggSupport: true
})





is there any way to disable the autoplay?

Answer

Remove .jPlayer("play")