0
如何在jplayer圈重複一首歌曲?我正在使用以下代碼進行自動播放。我想實施重複也。我試圖添加一些選項,如repeat:
,但它不適用於我。如何在jplayer圈重複一首歌曲
<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>
你能否提供重複執行?我的意思是你怎麼用它? –