I am working on a page that will play through a list of videos, and I want to be able to trigger a function whenever a video is finished playing.
I am going to be playing both WMV and SWF (Flash) files. When one of the videos is finished playing, I want to be able to automatically start the next one. I know I can use the setTimeout() function to trigger those events(if I know how long each video is), but that will not work for me, because the videos will take longer to load on some peoples connections then others.
Does any one know how to do this, or if it is even possible?
Here is a link to the basic idea of what I am wanting to do:
[url]http://www.xponix.com/dynamic_scheduling/Ad%20Rotator.html
Thanks,
Erik