зеркало из https://github.com/mozilla/popcorn-js.git
1.2 KiB
1.2 KiB
PopcornJS
The HTML5
Demos
- Original Mozilla Summit Demo: http://popcornjs.org/demos/semantic_video
- Brendan Eich Demo: http://popcornjs.org/demos/brendan_eich (made with butter)
Overview
Popcorn.js is an event system for
Popcorn is a JavaScript Function that wraps the native
- maintains a reference to the original HTMLVideoElement
- provides a normalized interface to the
elements native methods and properties. - adds a special data property which contains meta data about the
(this is where the magic happens)
By normalizing the native methods, the framework allows developers to write chainable function executions off the returned Popcorn object.
API
We have begun API documentation here: https://gist.github.com/729213#file_popcorn_api.js
Plugin Factory
Popcorn also offers a plugin factory. Popcorn plugins are a way for developers to wrap functionality that responds to a point in a video.
Roadmap
We are working on the 0.3 & 1.0 Roadmaps at http://etherpad.mozilla.com:9000/popcornjs