react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
923 stars 445 forks source link

Audio routing on Android is not routing to Speaker #745

Open wilmxre opened 1 year ago

wilmxre commented 1 year ago

Bug report

Description

When using RNCallKeep.setAudioRoute(systemId, routeName), if routeName is Speaker (or whatever the name of the speaker is from the list from RNCallKeep.getAudioRoutes()) the audio is routed to the Earpiece instead of Speaker.

Logs

selected audio route: Speaker
RNCallKeep didChangeAudioRoute  {"callUUID": "47ce4dbb-4dc1-4f27-9165-5afa9eae0a2d", "handle": "909c6991-96c6-4844-a925-accd3a0fdd94", "output": "SPEAKER"}
AudioDeviceManager: _onDeviceChanged
AudioDeviceManager: emit event DeviceChanged
onAudioDeviceChanged currentDevice  Earpiece

Versions

- Callkeep: "4.3.12"
- React Native: "0.72.4"
- Android: 11
- Phone model: Google Pixel 2XL
Bayramito commented 1 month ago

same here