youtube api: display speaker statements like a caption
- by zmol
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">.