JSFiddle - React, Tailwind, and code Playground

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>

CSS

html{font-family:arial;}

JavaScript

var pop = Popcorn( "#video" ),
    fired = 0;

//This exec should only run once
pop.cue( 5, function() {
    console.log( "cue fired " + ( ++fired ) + " time" );

    // Destroy the instance
    pop.destroy();

    pop.currentTime( 0 ).play();
});

pop.on( "canplay", function() {
    pop.play();
});