gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 02:25:39 26 4
gpt4 key购买 nike

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>

最佳答案

我在你的代码的帮助下工作了,但我添加了de循环选项:

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

希望有帮助。

关于javascript - Flowplayer 无法静音或循环播放视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15006087/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com