Hi,
I'm trying to write a screensaver type script in php. The script loads a random video clip or image from a directory and plays it in the screen. After the video or image has loaded, the page will refresh and load another clip.
Right now, the page can only handle images. It loads the image and then sets a 5 second delay before loading the next image.
The problem arises when I try to load video. The JavaScript function onLoad runs after the video has been fully loaded, not after the video has played all the way through.
So, my question is, is there a way to find the load time of a page when there is embedded video present? How will my script know when the video is done playing?
I've been working on this problem for quite some time with no answers. Any insight would be much appriciated. Thanks.
-Samantha