amazon-chime-sdk-android
amazon-chime-sdk-android copied to clipboard
Audio - Video transmitting on receiving calls
After joining a meeting, If a user receives a call over his/her phone, The meeting does not go to a halt and the voice from the call is audible in the meeting and vice versa.
To Reproduce
- Join a meeting
- Accept a call on your phone while being on the meeting
- Your voice can be heard on the meeting as well as the meeting audio can be heard on the call
Expected behavior There should be an option to pause the call audio and video completely in case a call is received and then resume once the call ends.
Test environment Info (please complete the following information):
- Device: One Plus
- OS: Android 10
- Version amazon-chime-sdk: 0.7.1
- Version amazon-chime-sdk-media: 0.6.1
Hi, I followed the reproduce steps on a S9 Android 10 device but not able to replay the situation Your voice can be heard on the meeting
, which means I can only hear the voice from the phone call not from meeting. Could you share more detail on the testing env?
My reproduce steps: (using the 0.7.3 sdk and 0.6.2 media sdk)
- Join a meeting from a Android demo app with another attendee on web demo
- Accept a call during the meeting
- Speak constantly over the phone
- Verify with another attendee on the web demo that there's no audio heard from me and the speaking indicator is also not showing up
For the meeting audio can be heard on the call
, I don't think we support pause a meeting for an incoming phone call. One workaround I can think of is for application to handle the phone call event by stopping the meeting session, and rejoin the meeting session after the phone call is ended.
Hi,
We tested several cases , however every time our voice from the call could be heard on other devices who had joined the meeting. Regarding meeting audio on the call, would be great if we have support for pausing the remote audio via code or pause the entire meeting altogether if required.
@mj8894 I am late in the party but Another workaround I can think of is inspired from:
Application lifecycle event, AudioFocusChangeListener and Don't be noisy honey.
So, when the application is going in the background while we are talking over the phone call and if the meeting is already going on, we will mute ourselves for the chime meeting.
Similarly, when our chime application comes in the foreground and if the meeting is live, we will unmute ourselves.
Also, we can use various audio constants (objective/intention) to control audio behaviour.
Posted here so that someone having a similar issue can have a couple of options to try