How to repeat a song in jplayer circle? I am using the below code for autoplay. I want to implement repeat also. I have tried to add some option like repeat:
, but it didn't work for me.
<script type="text/javascript">
$(document).ready(function(){
/*
* Instance CirclePlayer inside jQuery doc ready
*
* CirclePlayer(jPlayerSelector, media, options)
* jPlayerSelector: String - The css selector of the jPlayer div.
* media: Object - The media object used in jPlayer("setMedia",media).
* options: Object - The jPlayer options.
*
* Multiple instances must set the cssSelectorAncestor in the jPlayer options. Defaults to "#cp_container_1" in CirclePlayer.
*/
var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
{
mp3: "http://gokuldham.siyatechnologies.com/Images/ShreejiDhun.mp3",
oga: "http://gokuldham.siyatechnologies.com/Images/ShreejiDhun.ogg"
}, {
cssSelectorAncestor: "#cp_container_1",
canplay: function() {
$("#jquery_jplayer_1").jPlayer("play");
}
});
});
</script>
This code works fine. Autoplay is working and song is repeating.
Note that I'm using loop instead repeat.