I'm using Videojs and I need to know when the timeline is used to navigate. Especialy I want the "current time" of the player when I click on the bar, and also the timer where it has been clicked (but easy one, I'll explain)
By using the myPlayer.currentTime() I can get the timer of the video, so I with eventListener such as "onclick" or "onmousedown" I though I can get the timer of the video at the click. But it only give me the timer after.
It's not easy to explain so this is an example : progressbar The timer is currently 0:01, and I click at 0:14 How to get the "0:01" from the player, which event
This is my event but I get the new timer
myPlayer.controlBar.progressControl.on('mouseup', function (event) {
console.log(myPlayer.currentTime());
});
I even try other event, on other elements such as mousedown which also give me the timer after, and not triggered when I click directly on the slider
myPlayer.controlBar.progressControl.on('mousedown', function (event) {
console.log(myPlayer.currentTime());
});
I've tried lots of things, none of them work, have you any ideas?