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

This commit is contained in:
Gabe Kangas
2020-07-16 19:54:12 -07:00
parent 42b0b05d78
commit 3eba516f04

View File

@@ -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();
};