PDA

View Full Version : how to seek frame of a youtube video with a javascript function


(-o_o-)
12-06-2008, 06:02 PM
Hola todos! :)

yope, working on a saturday... :rolleyes:

i'm a javascript coder and very ignorant in flex or actionscript in general!

I'm running through a problem involving the Chromeless Player of YouTube. I have two players playing at the same time and they need to be synchronized. YouTube JavaScript API offers a function that will seek the video to a given second. the problem is that javascript will return the closest frame found around the asked second, with a margin of error of 2 seconds, which is huge when you want videos to play simultaneously!!

So i'm looking for a script that can seek the video by frame instead of by second. Anybody knows if there is a javascript function that does such a thing?

Thanks for ur help and sorry for bothering on a week-end :p