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>
</video>
JavaScript
var v = document.getElementById( "video" );;
// Listen for error event
v.addEventListener( "error", function( e ) {
console.log( "error fired!", v.error );
}, false );
// Load the first video source.
v.src = "foo";
v.load();