I want to capture the current run time of a HTML5 video when a specific button is clicked. Here is my code
var vid = document.getElementById("video1");
$('#cap-cue').click(function(){
var curtime = vid.currentTime;
alert(curtime);
});
This is working perfectly for most of the browsers but not working on chrome.
The problem (at least regarding Chrome) is probably on the server side.
Put Header set Accept-Ranges bytes
in your .htaccess
(see this answer)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With