Skip to content

The swiss army knife of lossless video/audio editing

improve error

Mikael Finstad8eebd7ecd699
diff --git a/src/App.tsx b/src/App.tsx
index 4615b4f3..43c6ebab 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -923,8 +923,11 @@ function App() {
if (resetPlaybackRate) video!.playbackRate = outputPlaybackRate;
video?.play().catch((err) => {
+ if (err instanceof Error && err.name === 'AbortError' && 'code' in err && err.code === 20) { // Probably "DOMException: The play() request was interrupted by a call to pause()."
+ console.error(err);
+ } else {
showPlaybackFailedMessage();
- console.error(err, Object.entries(err));
+ }
});
}, [filePath, outputPlaybackRate, playing]);