Browse Source

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

pull/68/head
Gabe Kangas 6 years ago
parent
commit
3eba516f04
  1. 5
      webroot/js/player.js

5
webroot/js/player.js

@ -35,7 +35,10 @@ class OwncastPlayer {
// play // play
startPlayer() { startPlayer() {
this.log('Start playing'); 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(); // this.vjsPlayer.play();
}; };

Loading…
Cancel
Save