From 5a681ef654a8ced83234f0302a08e467e4ca8ae5 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 25 Oct 2021 16:04:44 +0100 Subject: [PATCH] avoid src change to same url --- app/static/js/ascroll.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {