client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[bug]Echo Issue on Specific Android 14 Devices Using LiveKit

Open yuemenglong opened this issue 1 year ago • 17 comments

Hello, thank you for your excellent open-source project!

I encountered an issue while using it: on certain devices, an echo occurs during communication. The problematic devices identified so far are OnePlus 11 and Redmi Note 13, both running Android 14.

The specific issue is as follows:

When the problematic devices communicate with other phones using LiveKit for voice calls, the other party hears an echo from the problematic devices. However, the problematic devices themselves sound normal (this occurs regardless of whether it’s audio-only or video, or whether speaker mode is enabled). Our app also supports WebRTC direct calls (bypassing LiveKit). We use the WebRTC client library included in the LiveKit SDK. In this scenario, communication is normal on these devices. An even stranger issue arises: if the problematic devices first use WebRTC direct calling (scenario 2), everything works fine. However, once they use LiveKit for communication, subsequent WebRTC direct calls also produce echoes. Killing the process on the problematic devices restores normal behavior for WebRTC direct calls, but killing the process on the other side does not resolve the issue.

The software versions in use are: client-sdk-flutter: 2.2.6 flutter-webrtc (the WebRTC client library included with the LiveKit SDK): 0.11.7

I currently have no clue how to resolve this issue. Could you please help investigate? Thank you!

yuemenglong avatar Jan 03 '25 14:01 yuemenglong