2013-02-21 48 views
1

Flowplayer拒绝识别循环视频的代码。Flowplayer无法静音或循环视频

它也不会允许我删除暂停暂停功能或静音视频的音量。

<div style="width:100%;height:100%;margin:0;" 
id="player"></div> 
<!-- this script block will install Flowplayer inside previous DIV tag --> 
<script> 
flowplayer(
"player", 
"http://releases.flowplayer.org/swf/flowplayer-3.2.16.swf", { 
clip: { 
url: "http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv", 
autoPlay: true, 
autoBuffering: true, 
onBegin: function() { 
this.setVolume(0); 
} 
}, 
play: { 
opacity: 0.0, 
label: null, 
// label text; by default there is no text 
replayLabel: null, 
// label text at end of video clip 
}, 
// disable default controls 
plugins: {controls: null}, 
// prevent pausing 
onBeforePause: function() { 
return false; 
}, 
// make the video loop 
onBeforeFinish: function() { 
return false; 
} 
}); 
</script> 

回答

1

我有我与您的代码的帮助工作,但我加了德循环选项:

// make the video loop 
loop: true, 
onBeforeFinish: function() { 
return false; 
} 
}); 

希望它能帮助。