Call functions run when External Video events are triggered (Start, Buffer, End)
Posted on 2007-03-27
I need to have several functions run when Video events are triggered.
Specifically, I have a flash program that plays an external FLV file that is set to stream (as opposed to embedding it within the flash movie). I need to run a function as soon as the video starts playing (AFTER IT FINISHES BUFFERING) and also as soon as the video ends playing. I would also like to know if and when the video ever goes back to buffering (i can hopefully avoid this by setting the "buffertime" parameter to something large like 30 seconds).
To reiterate I need 3 things:
1. Call a function when buffering of an externally streamed video ends and video playback begins.
2. Some way to know if and when buffering begins again.
3. Call a function as soon as the video playback ends.
Thanks a lot for your help!