Fix looped videos sometimes not skipping start segment

Fixes  #1723
This commit is contained in:
Ajay
2023-04-21 22:16:13 -04:00
parent ab7dfe80f7
commit e31efbbf81

View File

@@ -863,7 +863,12 @@ function setupVideoListeners() {
updateVirtualTime(); updateVirtualTime();
clearWaitingTime(); clearWaitingTime();
startSponsorSchedule(); // Sometimes looped videos loop back to almost zero, but not quite
if (getVideo().loop && getVideo().currentTime < 0.2) {
startSponsorSchedule(false, 0);
} else {
startSponsorSchedule();
}
} else { } else {
updateActiveSegment(getVideo().currentTime); updateActiveSegment(getVideo().currentTime);