Wednesday, March 12, 2008

Video captioning made easy with the YouTube JavaScript API

One thing that has been annoying me for ages is that no video player on the web allows you to write comments for a specific time in the video that get displayed as plain text. Viddler allows you to comment at a certain time and it appears in the video, but the benefits of time based captioning both in terms of accessibility and SEO didn’t quite transpire to any video site maintainers yet. Edit: Darn, I hadn’t looked at Viddler for a long time, it actually does this now, well done!



Google just released a JavaScript API for YouTube which makes it dead easy to control a video with JavaScript. You can start, stop and jump to a certain time of the video but more importantly – you have events firing when something happens to the player. This made it easy for me to whip up a proof of concept how time-based captioning might work as an interface. Click the screenshot to see it in action.



Screenshot of video with timed captions created with a small JavaScript



Start the video and hit the pause button to add a new caption. You can delete captions by hitting the x links and you can jump back to the section of the video by clicking the time stamp.



Check the source for how it is done. In order to make this a service, all you need to do is have a backend script that gets all the form fields and store it in a DB.



Technorati Tags: , , , , ,

9 comments:

Mary Schmitz said...

Services the exam with regard to rich outcomes allows the best website design you to go beyond your publicly accessible page which ends originate from the structured information

Michael Alexander said...

They’re an accountable team that’s easy to work with, and they can be trusted to keep projects on track.
logo design san francisco

Sherry Beck said...

We have a varied range of customers and app design agency with a number of finances and advertising needs.

Lauren Chevalier said...

Their approach combined business strategy and technical innovation.
best branding agency

Kimberly Beckham said...

Keep the ball rolling you have done the great job here.
branding agency San Francisco

Stephanie Clifton said...

Really amazing blog, I’d love to discover some extra information.
best logo companies

Mary Sabatini said...

I have got the superb information from these blogs finally.
web design firm

Sergio Lewis said...

No wonder why you receive countless of feedbacks.
best UX design firms

Sarah Silva said...

Really amazing blog, I’d love to discover some extra information.
companies in web development and UX/UI

Post a Comment