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

audioinput.stop() stream to web problem #80

Open
kpwa opened this issue Oct 24, 2018 · 2 comments
Open

audioinput.stop() stream to web problem #80

kpwa opened this issue Oct 24, 2018 · 2 comments
Labels
analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute!

Comments

@kpwa
Copy link

kpwa commented Oct 24, 2018

one i call audioinput.stop() the next streamtoweb audio will just stop working.
Issue happens in ios 11 & 12

@edimuj
Copy link
Owner

edimuj commented Oct 26, 2018

Do you have some code showing how to trigger this issue?

@edimuj edimuj added the analysis needed This is a question or potential bug that needs further analysis. label Oct 26, 2018
@kpwa
Copy link
Author

kpwa commented Oct 26, 2018

rec() {
audioinput._micGainNode = null;
let audioCtx = new (window["AudioContext"] || window["webkitAudioContext"])();
audioinput.start({streamToWebAudio : true, audioContext:audioCtx, concatenateMaxChunks: 1, normalize: true}); // Start the capture
var dest = audioinput.getAudioContext().createMediaStreamDestination(); // Create the node
audioinput.connect(dest);
return (dest.stream);
}

stop(){
audioinput.disconnect();
audioinput.stop();
}

i call rec function to start. Everything works ok, my stream goes through perfectly. Then i call stop. Then i call rec function again, but no audio is streamed back also no error is displayed either.

Then when i restart the app, and call rec function, it works, then i call stop and call rec function again, same issue re ocurs.

@edimuj edimuj added the help wanted The great thing about open-source is that everyone can contribute! label Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute!
Projects
None yet
Development

No branches or pull requests

2 participants