Only ignore play event when buffering

This commit is contained in:
Ajay 2022-07-03 00:22:56 -04:00
parent 6b4da25847
commit 8d9042aeeb

View file

@ -695,7 +695,8 @@ function setupVideoListeners() {
// If it is not the first event, then the only way to get to 0 is if there is a seek event
// This check makes sure that changing the video resolution doesn't cause the extension to think it
// gone back to the begining
if (!firstEvent && video.currentTime === 0) return;
if (video.readyState <= HTMLMediaElement.HAVE_CURRENT_DATA
&& !firstEvent && video.currentTime === 0) return;
firstEvent = false;
updateVirtualTime();