From f8b83a6f8c530f90f7d4ca55cc3d113ffe4a19ac Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Wed, 13 Dec 2023 21:51:06 +0100 Subject: [PATCH] Remove play() to stop weird audio buffering thingie https://youtu.be/dQw4w9WgXcQ --- src/components/player/internals/ThumbnailScraper.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/player/internals/ThumbnailScraper.tsx b/src/components/player/internals/ThumbnailScraper.tsx index a86d2043..c72360ac 100644 --- a/src/components/player/internals/ThumbnailScraper.tsx +++ b/src/components/player/internals/ThumbnailScraper.tsx @@ -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 = () => {