rename hls to vhs in the player
hls method is deprecated: https://github.com/videojs/http-streaming#how-to-use
This commit is contained in:
parent
eba311baa9
commit
f013a6b1d7
@ -23,7 +23,7 @@ var options = {
|
|||||||
},
|
},
|
||||||
html5: {
|
html5: {
|
||||||
preloadTextTracks: false,
|
preloadTextTracks: false,
|
||||||
hls: {
|
vhs: {
|
||||||
overrideNative: true
|
overrideNative: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -50,7 +50,7 @@ var shareOptions = {
|
|||||||
embedCode: "<iframe id='ivplayer' width='640' height='360' src='" + embed_url + "' style='border:none;'></iframe>"
|
embedCode: "<iframe id='ivplayer' width='640' height='360' src='" + embed_url + "' style='border:none;'></iframe>"
|
||||||
}
|
}
|
||||||
|
|
||||||
videojs.Hls.xhr.beforeRequest = function(options) {
|
videojs.Vhs.xhr.beforeRequest = function(options) {
|
||||||
if (options.uri.indexOf('videoplayback') === -1 && 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';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user