Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demuxer throw error fix #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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