Merge pull request #1619 from tenpura-shrimp/ignorevideoplayback

do not add local to xhr when in videoplayback
pull/1678/head
Perflyst 4 years ago committed by GitHub
commit c7e65ce795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,7 +42,7 @@ var shareOptions = {
} }
videojs.Hls.xhr.beforeRequest = function(options) { videojs.Hls.xhr.beforeRequest = function(options) {
if (options.uri.indexOf('local=true') === -1) { if (options.uri.indexOf('videoplayback') === -1 && options.uri.indexOf('local=true') === -1) {
options.uri = options.uri + '?local=true'; options.uri = options.uri + '?local=true';
} }
return options; return options;

Loading…
Cancel
Save