mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-26 05:41:53 +01:00
Remove play() to stop weird audio buffering thingie https://youtu.be/dQw4w9WgXcQ
This commit is contained in:
parent
6a9eb11884
commit
f8b83a6f8c
@ -79,7 +79,6 @@ class ThumnbnailWorker {
|
|||||||
|
|
||||||
private async takeSnapshot(at: number) {
|
private async takeSnapshot(at: number) {
|
||||||
if (!this.videoEl || !this.canvasEl) return;
|
if (!this.videoEl || !this.canvasEl) return;
|
||||||
await this.videoEl.play(); // so that `seeked` actually triggers
|
|
||||||
this.videoEl.currentTime = at;
|
this.videoEl.currentTime = at;
|
||||||
await new Promise((resolve) => {
|
await new Promise((resolve) => {
|
||||||
const onSeeked = () => {
|
const onSeeked = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user