![](https://secure.gravatar.com/avatar/06aacb2f1dbed200347db0a003fc6179?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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>