我在 flowplayer 循环时遇到问题。我尝试了很多不同的东西,但我无法让它循环。它播放一次并停止。
这是代码:
HTML:
<div id="home_fplayer" href="/File/1.mp4"><img alt="" src="/File/ld.jpg" /></div>
JS:
$(document).ready(function ()
{
$f("home_fplayer", {src:"/js/flowplayer/flowplayer.commercial-3.2.7.swf", wmode: 'opaque'},
{
key: '#$1432062db092e251814',
plugins:
{
controls: null
},
loop: true,
clip:
{
autoPlay: true,
onBeforePause: function(clip)
{
return false;
},
onFinish: function ()
{
this.play(0);return false;
},
onBeforeFinish: function ()
{
this.play(0);return false;
}
}
}).ipad();
$f("home_fplayer").play();
});