Closed chdh closed 3 years ago
This fix interests me, thanks @chdh. @cladera do you have any idea when you will be able to merge it?
Thank you very much @chdh! The fix looks great. I had to cherry picked your commit though because it was not following conventional commit and I wanted the commit to appear in the Changelog.
fixes #43
The source of the problem is: In Video.js,
SeekBar.getCurrentTime_()
retrieves the current video position from the cache when the player is in scrubbing mode (i.e. while the mouse button is down). The cachedcurrentTime
value is set at the end ofPlayer.currentTime()
. The videojs-offset plugin overridesPlayer.currentTime()
and modifies the returned value, but the original (wrong)currentTime
value gets cached. This patch fixes that by updating the cached value.See:
getCurrentTime_()
in seek-bar.jscurrentTime()
in player.js