Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Remove cache-control header from HLS queries (#118)
Matt Steele2f80de18c6a6
diff --git a/webroot/js/player.js b/webroot/js/player.jsindex 986e3566d2..337617c93b 100644--- a/webroot/js/player.js+++ b/webroot/js/player.js@@ -48,10 +48,7 @@ class OwncastPlayer {init() {videojs.Hls.xhr.beforeRequest = function (options) {const cachebuster = Math.round(new Date().getTime() / 1000);- options.uri = options.uri + "?omgwtf=" + cachebuster;- options.headers = {- 'Cache-Control':'no-cache'- };+ options.uri = `${options.uri}?cachebust=${cachebuster}`;return options;};@@ -151,4 +148,4 @@ class OwncastPlayer {}-export { OwncastPlayer };\ No newline at end of file+export { OwncastPlayer };