|
|
@ -173,7 +173,7 @@ export function wrapVideo({doc, container, message, boxWidth, boxHeight, withTai |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const onPlay = () => { |
|
|
|
const onPlay = () => { |
|
|
|
video.remove(); |
|
|
|
video.classList.add('hide'); |
|
|
|
divRound.classList.remove('is-paused'); |
|
|
|
divRound.classList.remove('is-paused'); |
|
|
|
animateSingle(onFrame, canvas); |
|
|
|
animateSingle(onFrame, canvas); |
|
|
|
}; |
|
|
|
}; |
|
|
@ -205,6 +205,7 @@ export function wrapVideo({doc, container, message, boxWidth, boxHeight, withTai |
|
|
|
if(globalVideo.duration && globalVideo.currentTime !== globalVideo.duration) { |
|
|
|
if(globalVideo.duration && globalVideo.currentTime !== globalVideo.duration) { |
|
|
|
onFrame(); |
|
|
|
onFrame(); |
|
|
|
onTimeUpdate(); |
|
|
|
onTimeUpdate(); |
|
|
|
|
|
|
|
video.classList.add('hide'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
onPaused(); |
|
|
|
onPaused(); |
|
|
|
} |
|
|
|
} |
|
|
|