Skip to content

Commit

Permalink
Remove http rewrite on default timing source
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Jan 27, 2023
1 parent 80c90ab commit 7bac81c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/streaming/controllers/StreamController.js
Expand Up @@ -1271,15 +1271,6 @@ function StreamController() {
}

let allUTCTimingSources = (!adapter.getIsDynamic()) ? manifestUTCTimingSources : manifestUTCTimingSources.concat(customParametersModel.getUTCTimingSources());
const isHTTPS = urlUtils.isHTTPS(e.manifest.url);

//If https is detected on manifest then lets apply that protocol to only the default time source(s). In the future we may find the need to apply this to more then just default so left code at this level instead of in MediaPlayer.
allUTCTimingSources.forEach(function (item) {
if (item.value.replace(/.*?:\/\//g, '') === settings.get().streaming.utcSynchronization.defaultTimingSource.value.replace(/.*?:\/\//g, '')) {
item.value = item.value.replace(isHTTPS ? new RegExp(/^(http:)?\/\//i) : new RegExp(/^(https:)?\/\//i), isHTTPS ? 'https://' : 'http://');
logger.debug('Matching default timing source protocol to manifest protocol: ', item.value);
}
});

// It is important to filter before initializing the baseUrlController. Otherwise we might end up with wrong references in case we remove AdaptationSets.
capabilitiesFilter.filterUnsupportedFeatures(manifest)
Expand Down

0 comments on commit 7bac81c

Please sign in to comment.