Skip to content

Conversation

@kugimiya
Copy link

@kugimiya kugimiya commented May 24, 2022

Hi! I wanna hotfix demuxer error handling.

What happened: library called 'audio-decode' use package 'av', that uses this package for decoding mp3-files to buffer.

Usage of 'av' in 'audio-decode': https://github.com/audiojs/audio-decode/blob/master/index.js#L80=

As you can see, error handling looks good. Buuut, in runtime in some cases thrown error terminate node process (screenshot):
изображение

I try to handle this by try-catch block inside my project, but this dont work (idk why):
изображение

So, when I added try-catch block inside 'mp3' package (as at this PR) problem got fixed. So, handled error message look like this:
изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant