如何在jplayer圈子里重复一首歌?我正在使用以下代码进行自动播放。我也想实现重复。我试图添加一些选项,例如repeat:
,但它对我不起作用。
<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>