diff --git a/light9/web/light9-vidref-replay.js b/light9/web/light9-vidref-replay.js --- a/light9/web/light9-vidref-replay.js +++ b/light9/web/light9-vidref-replay.js @@ -33,6 +33,10 @@ class Light9VidrefReplay extends LitElem } const i = _.sortedIndex(this.songToVideo, [songTime], (row) => { return row[0]; }); + if (i == 0 || i > this.songToVideo.length - 1) { + isPlaying = false; + } + this.videoTime = this.songToVideo[Math.max(0, i - 1)][1]; this.outVideoCurrentTime = this.outVideo.currentTime;