avoid src change to same url

This commit is contained in:
j 2021-10-25 16:04:44 +01:00
parent 8523aa8ba8
commit 5a681ef654

View file

@ -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) { function updatePlayer(video, frame, currentTime, out, src) {