improve error

pull/1939/head
Mikael Finstad 2 years ago
parent ef59dbda84
commit 8eebd7ecd6
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -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]);

Loading…
Cancel
Save