avoid src change to same url
This commit is contained in:
parent
8523aa8ba8
commit
5a681ef654
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue