It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center。
7年前关闭。
如何使用jwplayer在视频结束后再次显示海报图像?下面是一段代码:
7年前关闭。
如何使用jwplayer在视频结束后再次显示海报图像?下面是一段代码:
<video
src="video/Motion.mp4"
height="860"
id="video"
width="620"
poster="img/poster.png"
onclick="play();">
</video>
<script type="text/javascript">
jwplayer("video").setup({
flashplayer: "jwplayer/player.swf",
controlbar: "none",
});
jwplayer().getPlugin("display").hide();
</script>
最佳答案
你有没有试过利用即将完成的事件?
http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference#Events
<script type="text/javascript">
jwplayer("video").setup({
flashplayer: "jwplayer/player.swf",
controlbar: "none",
events: {
onComplete: function() {
alert('video has finished..do something here..');
}
});
</script>
关于html5 - 使用jwplayer + HTML5播放视频后,再次显示海报图像,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10487982/
10-11 13:11