-
Notifications
You must be signed in to change notification settings - Fork 159
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
useLocalAudioInputActivity/useLocalAudioInputActivityPreview does not work in a started meeting if the microphone toggle is off #542
Comments
Hey @mmarekbb We tried to reproduce the issue on our side by using the meeting demo in the component library. We also tried the same configuration as yours When we tried to log the value of
Could you try the meeting demo app once to see if you see the same issue? If you still see the issue, could you share some logs for us to investigate the it further? |
I have an update - I was wrong with the assumption that the version upgrade has broken the functionality. However, the mic preview only works when the microphone is enabled while the meeting has already started. If I don't run Is it possible to change this behavior so the audio activity preview works independently on the audio toggle state? Edit: I've updated the issue description to reflect this. |
Hi @mmarekbb , Could you please clarify a little more on your use case (looks like a feature request for now)? Do you mean that the useLocalAudioActivityPreview should work irrespective of audio mute / unmute? |
Yes, when the meeting isn't joined then you can see the preview even if the audio is muted. But once the meeting starts, that is no longer the case. We want to give users the ability to change their audio and video preferences during the session, but to do this, we cannot require them to have their actual in-session microphone turned on. |
I'm not sure if this should be considered a feature request, because the Camera Preview works even with the local camera toggle disabled. You can preview your own camera just fine without having to broadcast the stream to all other participants, but this is not the case with the audio preview. |
Hello, is there any update to this issue? @anuranduttaroy @devalevenkatesh |
Yes, you are right with the video camera. The Amazon Chime SDK for JavaScript (JS SDK) has separate APIs like the
For the There is a workaround explained in a similar issue on the JS SDK. Could you please check this issue's comment and see if the provided workaround works for you? |
Update on the workaround: I tried to implement the workaround in the You can use the react meeting demo to test the workaround.
|
Thanks for providing the workaround @devalevenkatesh! It works as expected for our use case. Are there any plans to bring this into the main codebase in the future? |
thanks for your interest. We are happy to note you have a workaround on the issue @mmarekbb - we will keep this issue active till it is resolved |
@mmarekbb For the Firefox use case since it does not allow you to get a second stream, you can use |
Posting an update here: The workaround above works great in Chrome but it fails in Firefox (and looks like Android as well) as it does not allow two concurrent media streams to exist. @ltrung We need to test the device selected using I'm assuming there's a way to solve this problem by not using the SDK hooks and instead enumerate the devices, let the user try the preview out and only set it using Please let me know if there are plans to improve this behavior in the SDK itself which we would happily wait for - otherwise we can try the workaround I'm mentioning above. FYI @giridharknamz |
@mmarekbb allowing the DeviceController to support multiple active streams would require rework of the SDK - we will consider this usecase in future major version upgrade (this is right now not in scope for 3.0) and will keep this issue until then. Please try the workaround and do share if it worked across all the browsers |
Describe the bug
The
useLocalAudioInputActivity
anduseLocalAudioInputActivityPreview
hooks only work when the meeting either has not started yet (meetingManager.start()
was not called) or the microphone has been turned on in a started meeting usinguseToggleLocalMute
.We'd like our customers to be able to change their device setup during a live session as well - everything else works (camera preview, changing devices, etc.)
To Reproduce
Steps to reproduce the behavior:
meetingManager.start()
- see the meeting demo for an examplemeetingManager.start()
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: