How to detect time on a playing Flash video

Posted by 6bytes on Stack Overflow See other posts from Stack Overflow or by 6bytes
Published on 2010-05-13T11:14:31Z Indexed on 2010/05/13 11:34 UTC
Read the original article Hit count: 196

Filed under:
|
|
|
|

Hi

I have a video playing on my page. I want to show and hide some div's when the video reaches a certain point. Lets say hide something on 10th second and show it again on 20th second.

I can easily do it in HTML5 with video tag and currentTime attribute but for IE I have to create the same functionality and I think with flash based videos (from YouTube or something like that).

Is there a way to detect the current time of a video playing on my website, embeded from YouTube, Metacafe or any other video sharing site?

I know I could detect it in flash and make it run some JavaScript function but I don't have flash nor have the skills to do it in AS3.

Is it possible to do it from JavaScript level or does any video sharing website out there provides this kind of functionality for their videos?

© Stack Overflow or respective owner

Related posts about flash

Related posts about video