JSFiddle - React, Tailwind, and code Playground

by Vladimir

HTML

<div></div>
<input type="button" value="Seek 30"><br />
<video id="player" width="640" height="480" preload="auto" controls="true">
    <source src="http://media.w3.org/2010/05/video/movie_300.mp4"  type="video/mp4"  />
</video>

JavaScript

$('input').click(funcion() {
                 alert('50.1');
     document.getElementById('player').currentTime = 50.1;
});


document.getElementById('player').addEventListener('loadedmetadata', function() {
    $('div').html('loadedmetadata');
  this.currentTime = 50.1;
}, false);