From f013a6b1d7a9ffed346682cdbc0bd4221203e72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Sun, 30 Jan 2022 15:22:31 +0000 Subject: [PATCH] rename hls to vhs in the player hls method is deprecated: https://github.com/videojs/http-streaming#how-to-use --- assets/js/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/player.js b/assets/js/player.js index 5ff55eb3..66d1682f 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'; }