Browse Source

Fix round video playback

master
morethanwords 3 years ago
parent
commit
1274272f06
  1. 2
      src/components/wrappers.ts

2
src/components/wrappers.ts

@ -239,7 +239,7 @@ export function wrapVideo({doc, container, message, boxWidth, boxHeight, withTai @@ -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');

Loading…
Cancel
Save