Update video.js and vhs http-streaming. Closes #133

This commit is contained in:
Gabe Kangas
2020-09-01 11:42:27 -07:00
parent c741797472
commit c9451cf13a
3 changed files with 7 additions and 5 deletions

View File

@@ -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;