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

Failure when trying to make to or more recordings using the same recorder object #4

Open
photz opened this issue Nov 22, 2015 · 3 comments

Comments

@photz
Copy link

photz commented Nov 22, 2015

Hi, first of all, thanks a million for this project! It's saved me a lot of pain and I've begun using it on my site. There's just one issue that I noticed: while the first recording is flawless, every other recording that follows will be plain silence, if the same recorder object is used. This seems to apply to all wav, mp3 and ogg files. This happens in my own project as well as in the example in the repo. Any idea what might be causing this? I use Firefox 42.0.

@Zerquix18
Copy link

@photz Can you give an example of the code that doesn't work ok?

@photz
Copy link
Author

photz commented Nov 23, 2015

Thanks for responding. If I clone the repository, point my browser to example/index.html, and make a number of recordings, then only the first mp3/ogg contains any sound. The remaining files are silent. Nothing shows up in the console. Replacing exportMP3() for exportWAV() yields the same (nothing). Can you reproduce this?

@AndrewBelt
Copy link

AndrewBelt commented Apr 24, 2016

Not sure if it's the same problem, but due to a bug in Firefox, the audio source created by the navigator.getUserMedia call gets garbage collected. Here is a workaround to use inside the callback.

    var stream = audio_context.createMediaStreamSource(stream);
    callback(new RecorderObject(stream, cfg));
    window.source = stream;

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

3 participants