Changeset - d7ea6d473bf6
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 6 years ago 2019-06-10 23:15:55
drewp@bigasterisk.com
don't let <video> play and get corrected when we're out of bounds, which made a bad flicker
Ignore-this: 2eb8ea8a5399b7ccd00841654ff620f0
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
light9/web/light9-vidref-replay.js
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)