Auto-download: hide play button on video's play
This commit is contained in:
parent
72b530aeb3
commit
207779be4c
@ -453,6 +453,12 @@ export function wrapVideo({doc, container, message, boxWidth, boxHeight, withTai
|
||||
video.addEventListener('timeupdate', () => {
|
||||
spanTime.innerText = (video.duration - video.currentTime + '').toHHMMSS(false);
|
||||
});
|
||||
|
||||
if(spanPlay) {
|
||||
video.addEventListener('timeupdate', () => {
|
||||
spanPlay.remove();
|
||||
}, {once: true});
|
||||
}
|
||||
}
|
||||
|
||||
video.muted = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user