I want to display different context-sensitive content during a video playing on a website. I am using HTML5 video and need a JavaScript API to handle eventing. I will need to control the video player as well as react to different time intervals in the video.
I want to display different context-sensitive content during a video playing on a website.
Share
Popcorn.js is an open source JavaScript library for programming rich interactive experiences with HTML5 Video and Audio elements and provides a very simply API to “display different context-sensitive content during a video playing on a website”.
Take a look at the demo gallery here: http://popcornjs.org/demos
Here is a tutorial, build with Popcorn.js, that shows how to create a simple Popcorn.js program: http://popcornjs.org/popcorn-101
The docs can be found here: http://popcornjs.org/api (this is still in progress)
The following example uses the Popcorn Footnote plugin to display a simple message under the video at specific time in during the playback:
Working example here: http://jsfiddle.net/rwaldron/6PEU8/
A recent demo shows how you could use an audio element as a slideshow controller, here: http://jsfiddle.net/rwaldron/DjmLM/