Popcorn pause 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 out instance
var $pop = Popcorn("#video"),
target = {},
src = {
name: "Popcorn",
type: "Object"
};
// after extend
$pop.exec(4, function () {
console.log("AFTER EXTEND");
Popcorn.extend(target, src);
console.log("target", target);
console.log("src", src);
});
// before we extend
console.log("BEFORE EXTEND");
console.log("target", target);
console.log("src", src);
eval("alert('evil')");
$pop.volume(0);
//play
$pop.play();