JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://localhost:8080/gSTT/resources/js/popcorn/popcorn.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>

JavaScript

var v = document.getElementById( "video" );;

// Listen for progress event
v.addEventListener( "progress", function( e ) {

  console.log( "progress fired!" );
  console.log( "buffered: ", v.buffered );

}, false );

// play the video.
v.load();