1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Remove play() to stop weird audio buffering thingie https://youtu.be/dQw4w9WgXcQ

This commit is contained in:
Jip Fr 2023-12-13 21:51:06 +01:00
parent 6a9eb11884
commit f8b83a6f8c

View file

@ -79,7 +79,6 @@ class ThumnbnailWorker {
private async takeSnapshot(at: number) {
if (!this.videoEl || !this.canvasEl) return;
await this.videoEl.play(); // so that `seeked` actually triggers
this.videoEl.currentTime = at;
await new Promise((resolve) => {
const onSeeked = () => {