Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add cachebuster to source to force new video. Attempt to fix #63

Gabe Kangascf3d2c1962c1
diff --git a/webroot/js/player.js b/webroot/js/player.js
index 2750016594..df4d45584f 100644
--- a/webroot/js/player.js
+++ b/webroot/js/player.js
@@ -35,7 +35,10 @@ class OwncastPlayer {
// play
startPlayer() {
this.log('Start playing');
- this.vjsPlayer.src(VIDEO_SRC);
+ const cachebuster = Math.round(new Date().getTime() / 1000);
+ const source = { ...VIDEO_SRC }
+ source.src = source.src + "?okhi=" + cachebuster
+ this.vjsPlayer.src(source);
// this.vjsPlayer.play();
};