diff --git a/.changeset/eleven-hornets-lay.md b/.changeset/eleven-hornets-lay.md new file mode 100644 index 00000000..55db9e1a --- /dev/null +++ b/.changeset/eleven-hornets-lay.md @@ -0,0 +1,5 @@ +--- +'@webav/av-cliper': patch +--- + +fix: timeout when quick seeking diff --git a/packages/av-cliper/src/clips/mp4-clip.ts b/packages/av-cliper/src/clips/mp4-clip.ts index b0262847..5a0bd57e 100644 --- a/packages/av-cliper/src/clips/mp4-clip.ts +++ b/packages/av-cliper/src/clips/mp4-clip.ts @@ -703,6 +703,7 @@ class VideoFrameFinder { }; reset = (time?: number) => { + this.#decoding = false; this.#videoFrames.forEach((f) => f.close()); this.#videoFrames = []; if (time == null || time === 0) { @@ -740,7 +741,6 @@ class VideoFrameFinder { ? { hardwareAcceleration: 'prefer-software' } : {}), }); - this.#decoding = false; }; #getState = () => ({