Skip to content

Commit f013a6b

Browse files
authored
rename hls to vhs in the player
hls method is deprecated: https://github.com/videojs/http-streaming#how-to-use
1 parent eba311b commit f013a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/player.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var options = {
2323
},
2424
html5: {
2525
preloadTextTracks: false,
26-
hls: {
26+
vhs: {
2727
overrideNative: true
2828
}
2929
}
@@ -50,7 +50,7 @@ var shareOptions = {
5050
embedCode: "<iframe id='ivplayer' width='640' height='360' src='" + embed_url + "' style='border:none;'></iframe>"
5151
}
5252

53-
videojs.Hls.xhr.beforeRequest = function(options) {
53+
videojs.Vhs.xhr.beforeRequest = function(options) {
5454
if (options.uri.indexOf('videoplayback') === -1 && options.uri.indexOf('local=true') === -1) {
5555
options.uri = options.uri + '?local=true';
5656
}

0 commit comments

Comments
 (0)