1

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>
4

1 回答 1

1

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

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

希望能帮助到你。

于 2014-09-17T11:52:22.833 回答