Fixed video player overlay issue on loop

refs https://github.com/TryGhost/Team/issues/1229
This commit is contained in:
Rishabh 2021-12-15 00:44:32 +05:30
parent 2ac0302da1
commit e21eb935f4

View File

@ -33,7 +33,10 @@
let raf = null;
let currentPlaybackRateIdx = 1;
if (!!videoEl.loop) {
largePlayIcon.classList.add("kg-video-hide-animated");
videoOverlay.classList.add("kg-video-hide-animated");
}
const whilePlaying = () => {
seekSlider.value = Math.floor(videoEl.currentTime);
currentTimeContainer.textContent = calculateTime(seekSlider.value);