youtube api: display speaker statements like a caption

Posted by zmol on Stack Overflow See other posts from Stack Overflow or by zmol
Published on 2011-01-29T15:21:47Z Indexed on 2011/01/29 15:26 UTC
Read the original article Hit count: 165

Filed under:
|
|
|
|

I'm doing something similar to close caption but not exactly the same. I have a youtube video, and I want to display certain messages at specific points in the video.

When the video loads, I pull entries from the database in the format time and sentence. For example, at 0:20 the speaker says "don't forget to write down my email that you see on the side" and I want to display the email on the side. At 0:50, he says "and I'll post my office hours" so I want to show those office hours at that time.

How can I do this. The video itself is hosted on youtube, but is being displayed on a private website. The div where I want to display the messages is <div id="write">.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript