我有这个代码,当视频完成时它没有警报,但我只能再次播放视频。我找到了很多代码就像我的例子。
<html>
<head>
<title>Test Page</title>
</head>
<body>
<script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>
<div id="container">This'll be the player</div>
<script type="text/javascript">
jwplayer("container").setup({
file:"https://www.youtube.com/watch?v=U-FbXkGqoek",
flashplayer: "http://player.longtailvideo.com/player.swf",
height:400,
width:600,
events:{
onComplete: function() {
alert("Done");
}
},
});
</script>
</body>
</html>
答案 0 :(得分:0)