From your example code it looks like you are using the flowplayer HTML5 video player. As far as I am aware there is no onFinish
event. There is however a finish
event which you can bind to. Here's how:
Example
flowplayer(function (api, root) {
api.bind("finish", function () {
alert("Click Player to start video again");
});
});
More information can be found on the flowplayer API docs