JSFiddle - React, Tailwind, and code Playground
by Fobos Deimos
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 src="http://videos.mozilla.org/serv/webmademovies/popcornplug.ogv">
<source src="http://videos.mozilla.org/serv/webmademovies/popcornplug.webm">
</video>
<div id="imagediv"></div>
CSS
#imagediv {
width:200px;
height:100px;
}
JavaScript
// create our popcorn instance
var p = Popcorn( "#video" )
// play the video
.play()
// set the volume to zero
.volume( 0 )
.image({
// seconds
start: 1,
// seconds
end: 5,
href: "http://www.drumbeat.org/",
src: "https://www.drumbeat.org/media//images/drumbeat-logo-splash.png",
text: "DRUMBEAT",
target: "imagediv"
});