JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<head>
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
</head>
<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>

JavaScript

// create our popcorn instance
var pop = Popcorn( "#video" );

pop.subtitle({
        start: 1,
        end: 5,
        text: "Subtitles are a go",
      })

// play video
pop.play();