From c9451cf13a9bbac04093e3c4f99ab4c01b47fbdf Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 1 Sep 2020 11:42:27 -0700 Subject: [PATCH] Update video.js and vhs http-streaming. Closes #133 --- webroot/index-video-only.html | 5 +++-- webroot/index.html | 5 +++-- webroot/js/components/player.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/webroot/index-video-only.html b/webroot/index-video-only.html index 748bd4bdc..c9efcbdc4 100644 --- a/webroot/index-video-only.html +++ b/webroot/index-video-only.html @@ -5,9 +5,10 @@ - + - + + diff --git a/webroot/index.html b/webroot/index.html index 40a1eb1fd..168ccc6eb 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -23,9 +23,10 @@ - + - + + diff --git a/webroot/js/components/player.js b/webroot/js/components/player.js index 8de03fcf6..05cbe5998 100644 --- a/webroot/js/components/player.js +++ b/webroot/js/components/player.js @@ -47,7 +47,7 @@ class OwncastPlayer { } init() { - videojs.Hls.xhr.beforeRequest = function (options) { + videojs.Vhs.xhr.beforeRequest = function (options) { const cachebuster = Math.round(new Date().getTime() / 1000); options.uri = `${options.uri}?cachebust=${cachebuster}`; return options;