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

Stopping recording before encoder loaded results in failure #52

Open
entr0cks opened this issue Dec 12, 2022 · 0 comments
Open

Stopping recording before encoder loaded results in failure #52

entr0cks opened this issue Dec 12, 2022 · 0 comments

Comments

@entr0cks
Copy link

entr0cks commented Dec 12, 2022

Using .stopRecording() results in a bad file when encoder (mp3) hasn't loaded yet, since it relies on a worker that hasn't loaded yet.
Also, although the resulting file can't be played, its size indicates that it's not processed.

To reproduce you can use this demo (https://addpipe.com/simple-web-audio-recorder-demo/) and throttle networking with Devtools for Chrome (for example 800kb/s) and do a short 1-2s recording.

The log of the demo should display:
Loading mp3 encoder...
Recording started
Recording stopped
mp3 encoder loaded
Encoding complete

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

No branches or pull requests

1 participant