我希望Post Roll视频只能在上一个视频播放后开始播放。问题是,当Post Roll视频设置为自动播放时,开始播放但我希望它只能在previuos视频完全结束后播放。
以下是代码:
<script>
if((typeof jQuery == "undefined") || !window.jQuery )<br>
{<br>
var script = document.createElement("script");<br>
script.type = "text/javascript";<br>
script.src = "[http://vtubemobi.com/tpl/main/styles/js/jquery.js][1]";<br>
document.getElementsByTagName('head')[0].appendChild(script);<br>
}<br>
var acanceltext = "Cancel";<br>
var startNextVideo,moveToNext,nextPlayUrl;<br>
</script><br>
<script><br>
$(document).ready(function() {<br>
fapi = flowplayer();<br>
fapi.one("finish", function(){<br>
startNextVideo();<br>
});<br>
});<br>
$(document).ready(function() {<br>
api = flowplayer($(".flowplayer"));<br>
api.one("playing", function(){<br>
$('div.screenAd').addClass('hide');<br>
$('.plAd').addClass('hide');<br>
});<br>
api.one('ready', function(e, api, video) {<br>
api.stop(); <br>
$('.pre-roll-ad').removeClass('hide');<br>
$('.bigadclose').click(function(){ <br>
$('.pre-roll-ad').addClass('hide').remove('.pre-roll-ad'); <br>
api.play();<br>
});<br>
});<br>
api.bind('finish', function (e, api, video) {<br>
$('.post-roll-ad').removeClass('hide');<br>
$('.plAd').addClass('hide');<br>
$('.bAd').addClass('hide');<br>
$('.bigadclose').click(function(){<br>
$('div.screenAd').addClass('hide');<br>
api.play();<br>
});<br>
});<br>