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?
Remove .jPlayer("play")
how about reading the manual:
http://www.happyworm.com/jquery/jplayer/latest/developer-guide.htm
to disable looping (repeat) i would try:
$("#jpId").jPlayer("onSoundComplete", function() {
// Directly access this instance's jPlayer methods. (Does not support chaining.)
this.stop();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With