PDA

View Full Version : Detecting Windows Media Player in Javascript


Vizier
05-26-2003, 05:16 AM
Hi,

How do I detect the start and end of Windows Media Player using Javascript. I need to time the duration of a video clip that must be checked if the user has seen the same completely or not. How can I achieve the same in Javascript?

Thanks!
Vizier
:confused:

brothercake
05-26-2003, 11:00 PM
I don't think you can; afaik only RealPlayer exposes time objects to javascript.

twilight
09-11-2003, 12:22 AM
this should be helpful:
http://www.exelana.com/examples/iesound.html

it reffers to audio, but probably will work for viedo as well

the author of that document provides a script that makes the user listen to the whole file (well you want the user to watch the whole video, so it could help)

cheers:thumbsup: