
Event doesn't happen on JWPlayer v5.10
Hello everybody,
I use example code from JW Player Quick Start Guide. It has a function to get event onComplete but it don't work. What is wrong here? Can everybody help me?
The code is following:
bc.. <div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "/jwplayer/player.swf",
file: "/videos/video.mp4",
height: 270,
width: 480,
events: {
onComplete: function() { alert("the video is finished!"); }
}
});
</script>