Skip to content

Stopping recording before encoder loaded results in failure #52

Open
@entr0cks

Description

@entr0cks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions