Skip to content

Commit

Permalink
fix: always set default external stream handler (#99)
Browse files Browse the repository at this point in the history
The default redirect handler should always be setup, as it is a fallback for manifest load error.
If forceRedirectExternalStreams it means application wants it to be utilized in advanced, even before an error occurred.
  • Loading branch information
OrenMe authored and Dan Ziv committed Mar 14, 2018
1 parent 7e51fba commit 3b2769e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/utils/external-stream-redirect-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ function configureExternalStreamRedirect(config: Object): void {
});
sourceOptions = config.sources.options;
}
if (sourceOptions.forceRedirectExternalStreams) {
if (typeof sourceOptions.redirectExternalStreamsHandler !== "function") {
if (typeof sourceOptions.redirectExternalStreamsHandler !== "function") {
sourceOptions.redirectExternalStreamsHandler = getDirectManifestUri;
}
}
}

Expand Down

0 comments on commit 3b2769e

Please sign in to comment.