Popcorn currentTime Example
HTML
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<video height="180" width="300" id="video" controls>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.mp4"></source>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv"></source>
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.webm"></source>
</video>
<div id="footnotediv"></div>
CSS
html{font-family:arial;}
JavaScript
// create a popcorn instance
var $pop = opcorn("#video");
// at 5 seconds, switch the time back to 1 second
$pop.exec( 5, function() {
this.currentTime( 1 );
});
// play the video
$pop.play();