diff --git a/app/static/js/ascroll.js b/app/static/js/ascroll.js index d597bf2..c0de32b 100644 --- a/app/static/js/ascroll.js +++ b/app/static/js/ascroll.js @@ -35,7 +35,10 @@ function setVideoSrc(video, src) { } }) } - video.src = src.replace('.webm', videoExtension) + src = src.replace('.webm', videoExtension) + if (src != video.src) { + video.src = src + } } function updatePlayer(video, frame, currentTime, out, src) {