Flowplayer无法静音或循环播放视频

时间:2013-02-21 15:32:07

标签: javascript video 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 个答案:

答案 0 :(得分:1)

我得到了我的代码帮助,但我添加了de loop选项:

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

希望它有所帮助。

相关问题