The following code check whether a flowplayer video has completed playing. Here we bind the finish event to the flowplayer api .
flowplayer(function (api, root) {
api.bind("load", function () {
// do something when a new video is about to be loaded
}).bind("finish", function () {
// do something when a video is loaded and ready to play
alert('video play completed');
});
});