livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
176 stars 69 forks source link

Hearing my own voice when I and the other participants are unmute and have the Speakerphone selected as audioDevice #354

Open safeer-ahmed opened 8 months ago

safeer-ahmed commented 8 months ago

Describe the bug Join the call and select the Speakerphone as selectedAudioDevice. Once 2 or 3 users join this call, and unmute themselves then some of them start hearing themselves back with a delay of about 1 sec.

To Reproduce Here is the snippet used right after joining the call to start using the speakerphone: val audioDevices = audioHandler.availableAudioDevices val outputDevice = audioDevices.find { it is AudioDevice.Speakerphone } audioHandler.selectDevice(outputDevice)

Expected behavior None of the participants should hear themselves back.

Device Info:

Additional context I am using the audioHandler of the room. audioHandler = room.audioHandler as AudioSwitchHandler