mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Only ignore play event when buffering
This commit is contained in:
parent
6b4da25847
commit
8d9042aeeb
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue