2013-02-21 132 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; 
} 
}); 

希望它能幫助。