diff --git a/assets/js/player.js b/assets/js/player.js index 5ff55eb3c..66d1682f8 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -23,7 +23,7 @@ var options = { }, html5: { preloadTextTracks: false, - hls: { + vhs: { overrideNative: true } } @@ -50,7 +50,7 @@ var shareOptions = { embedCode: "" } -videojs.Hls.xhr.beforeRequest = function(options) { +videojs.Vhs.xhr.beforeRequest = function(options) { if (options.uri.indexOf('videoplayback') === -1 && options.uri.indexOf('local=true') === -1) { options.uri = options.uri + '?local=true'; }