From 1274272f0652aa012fb329085db0e221ffb11f4a Mon Sep 17 00:00:00 2001 From: morethanwords Date: Tue, 3 Aug 2021 05:12:37 +0300 Subject: [PATCH] Fix round video playback --- src/components/wrappers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/wrappers.ts b/src/components/wrappers.ts index 30f9dde2..23228537 100644 --- a/src/components/wrappers.ts +++ b/src/components/wrappers.ts @@ -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');