-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
The microphone icon in Chrome stays open when disconnected #52
Comments
Thanks for this! Although the user could do that on their side, I think it's an elegant solution. |
Agreed - I just had to hunt down how to do it and that took a bit of doing so maybe this would help others. Thanks for the killer awesome fantastic .. not enough good words to describe ... library. |
I've noticed the same behavior of the mic staying open in both Firefox & Chrome in my personal project where I use this library. I figured I did something wrong and since I'm the only person using it.. I could not be bothered to fix it. Although, should the track also be stopped when the analyzer is toggled off, using If desired I can raise a PR that toggles the track on |
Now available in v4.2.0 🎉 |
After stopping the use of the microphone, in Chrome, the mic icon stays on. This happens in my project and the examples on the websites as well. A solution is to also close the microphone track that is open when disconnecting.
An example solution is to add an option to the disconnect method to optionally close the track. This made the icon go away when used and should be backward compatible for anyone still needing it to not be closed when disconnecting.
Naturally can still be called with default sources:
audioMotion.disconnectInput(false, true);
The text was updated successfully, but these errors were encountered: