Merge pull request #1192 from asportnoy/master

fix: ignore switchingVideos in Safari
This commit is contained in:
Ajay Ramachandran
2022-02-24 14:34:16 -05:00
committed by GitHub

View File

@@ -879,7 +879,8 @@ function retryFetch(): void {
* Ex. When segments are first loaded * Ex. When segments are first loaded
*/ */
function startSkipScheduleCheckingForStartSponsors() { function startSkipScheduleCheckingForStartSponsors() {
if (!switchingVideos && sponsorTimes) { // switchingVideos is ignored in Safari due to event fire order. See #1142
if ((!switchingVideos || isSafari) && sponsorTimes) {
// See if there are any starting sponsors // See if there are any starting sponsors
let startingSegmentTime = getStartTimeFromUrl(document.URL) || -1; let startingSegmentTime = getStartTimeFromUrl(document.URL) || -1;
let found = false; let found = false;