I am designing a website that will provide continuing education courses via streaming video. One of the requirements is that attendance must be tracked. That is, I cannot allow users to navigate to the next video segment until they have actually watched the first video segment. I have written a PHP program that timestamps the loading of the page, saves this to a database table, and then prevents the user from viewing the next video segment until the timestamp has expired. But this is awkward, and it doesn’t ensure that the video has actually been played in its entirety. It would be nice if I could somehow interface with the video object to know when it is actually finished playing. Does anyone have any suggestions on the best way to accomplish this?
The videos in question are in .wmv format.
If you are using the html5 video tag, you could hook into the events available.
You have events “ended”, “playing” etc available to you using javascript.
You can call whatever external function (probably via ajax) if an event is triggered.