Skip to content

Commit be92bfd

Browse files
authored
Merge pull request #2847 from iv-org/hls-to-vhs
rename hls to vhs in the player
2 parents f5cb7ba + f013a6b commit be92bfd

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)