Fix round video playback

This commit is contained in:
morethanwords 2021-08-03 05:12:37 +03:00
parent b346b60248
commit 1274272f06

View File

@ -239,7 +239,7 @@ export function wrapVideo({doc, container, message, boxWidth, boxHeight, withTai
});
if(globalVideo.paused) {
if(globalVideo.duration && globalVideo.currentTime !== globalVideo.duration) {
if(globalVideo.duration && globalVideo.currentTime !== globalVideo.duration && globalVideo.currentTime > 0) {
onFrame();
onTimeUpdate();
video.classList.add('hide');