Browse Source

Auto-download: hide play button on video's play

master
Eduard Kuzmenko 3 years ago
parent
commit
207779be4c
  1. 6
      src/components/wrappers.ts

6
src/components/wrappers.ts

@ -453,6 +453,12 @@ export function wrapVideo({doc, container, message, boxWidth, boxHeight, withTai
video.addEventListener('timeupdate', () => { video.addEventListener('timeupdate', () => {
spanTime.innerText = (video.duration - video.currentTime + '').toHHMMSS(false); spanTime.innerText = (video.duration - video.currentTime + '').toHHMMSS(false);
}); });
if(spanPlay) {
video.addEventListener('timeupdate', () => {
spanPlay.remove();
}, {once: true});
}
} }
video.muted = true; video.muted = true;

Loading…
Cancel
Save