Skip to content

Commit

Permalink
Revert false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 17, 2023
1 parent 7f5c1f5 commit 5a7cfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/media/src/seekVideo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function seekVideo(video: HTMLVideoElement, offset = 0.99): Promise<void> {
}, THREE_SECONDS);
});
video.addEventListener('error', reject);
video.addEventListener('sought', () => resolve(), { once: true });
video.addEventListener('seeked', () => resolve(), { once: true });

video.currentTime = offset;
});
Expand Down

0 comments on commit 5a7cfcb

Please sign in to comment.