steep-balloon-41261
07/12/2023, 2:05 PMeager-raincoat-52616
07/12/2023, 3:15 PMeager-raincoat-52616
07/12/2023, 4:15 PMbored-monitor-77074
07/12/2023, 9:15 PMbored-monitor-77074
07/12/2023, 9:15 PMbored-monitor-77074
07/12/2023, 9:23 PMbored-monitor-77074
07/12/2023, 9:29 PMeager-raincoat-52616
07/13/2023, 5:38 AMbored-monitor-77074
07/13/2023, 5:44 AMbored-monitor-77074
07/13/2023, 5:44 AMbored-monitor-77074
07/13/2023, 7:50 PMeager-raincoat-52616
07/17/2023, 5:51 AMmaven { url '<https://s01.oss.sonatype.org/content/repositories/snapshots/>' } to your repositories to access the snapshot versionbored-monitor-77074
07/17/2023, 8:59 AMlate-tiger-55301
07/17/2023, 9:25 AMcallViewModel with sample-app-compose
in line 169 localParticipant.setMicrophoneEnabled(false)
Same behaviour.
I'm testing with An android 12 device and Android 11 device.
The code in the commit 90648076f8d0b490ee3e3789b4482dc3108cf3cd
is executed, i.e. the audioManager.setCommunicationDevice(audioDeviceInfo) in the AudioSwitchHandler is executed on the Android 12 device, but still same behaviour.
It happens with older versions too.
Can you let me know in which scenario was the fix working for you?
something that can be related, in the AbstractAudioSwitch class
line 167 there's a comment related to webrtc that on Activating device it says
// Always set mute to false for WebRTC
I'm not sure if that's related?
If you would like me to continue discussion on the github issue please let me know.eager-raincoat-52616
07/17/2023, 10:15 AMinfo.type == AudioDeviceInfo.TYPE_BLUETOOTH_SCO || info.type == AudioDeviceInfo.TYPE_BLUETOOTH_A2DPlate-tiger-55301
07/17/2023, 10:16 AMAudioDeviceInfo.TYPE_BLUETOOTH_SCOeager-raincoat-52616
07/17/2023, 10:18 AMlate-tiger-55301
07/17/2023, 10:41 AMwhen (selectedAudioDevice) line 87, yes it's that device that is set.eager-raincoat-52616
07/17/2023, 10:42 AMbored-monitor-77074
07/18/2023, 6:41 AMeager-raincoat-52616
07/18/2023, 6:41 AMbored-monitor-77074
07/18/2023, 6:43 AMeager-raincoat-52616
07/18/2023, 6:46 AMlate-tiger-55301
07/18/2023, 6:49 AMeager-raincoat-52616
07/18/2023, 5:02 PMlate-tiger-55301
07/19/2023, 7:25 AMlate-tiger-55301
07/19/2023, 3:31 PMAUDIOFOCUS_GAIN_TRANSIENT on joining room and we try to let media playing in the background to still be audible while in call and the user is muted. so when the user is muted we switch to audioManager.mode= MODE_NORMAL which works well on Android 12 after your fix, but not on Android 11.
So the end goal is, if the user is in a call and muted they should be able to hear music and the remote participants clearly at the same time.
Once the user is unmuted, we start bluetooth sco and switch mode to MODE_IN_COMMUNICATION sadly that's not working on android 11 but I'm looking more into it.eager-raincoat-52616
07/19/2023, 5:53 PMlate-tiger-55301
07/19/2023, 6:10 PMAudioDeviceManager to call setAudioFocus.
If the user is playing music and then joins a room, the app takes the main focus and the playback is stopped.
How we countered this in the app is to call audioSwitch.activate and then audioSwitch.deActivate right after the room is connected. so that the app releases the audio focus and the user can still listen to music. ( that makes the communication mode back to normal, and bluetooth sco is stopped )
and when the user unmutes we set communication mode to IN_COMMUNICATION and start bluetooth sco.
It's a bit hacky but it was working, but now it only works for android 12, not for 11. so it's more of a feature request than a bug, the end goal is:
User when join a room should be able to continue listening to music and other participant as long as the user is muted.
If the user unmutes, then it's okay for the music to be inaudible (due to MODE_IN_COMMUNICATION) and the audio input should still be from bluetooth device.eager-raincoat-52616
07/20/2023, 9:43 AMlate-tiger-55301
07/20/2023, 9:46 AMlate-tiger-55301
07/26/2023, 10:57 AMeager-raincoat-52616
07/26/2023, 10:58 AMlate-tiger-55301
07/26/2023, 10:59 AMlate-tiger-55301
08/04/2023, 6:35 AMNoAudioHandler and had to write our own device switching implementation. It would be nice to have this as an option though in the sdk.
Thank you!eager-raincoat-52616
08/04/2023, 6:41 AM