Open nagyszili opened 2 years ago
[x] I've checked the example to reproduce the issue.
Reproduced on:
If there is an active session and I call the getAudioRoutes() it changes the audio route, because there is a setCategory executed in the getAudioInputs https://github.com/react-native-webrtc/react-native-callkeep/blob/1c798d66e459abce943aedcc419838cf9c3fc29e/ios/RNCallKeep/RNCallKeep.m#L516
getAudioRoutes()
setCategory
getAudioInputs
https://developer.apple.com/documentation/avfaudio/avaudiosession/1616583-setcategory?language=objc
There is any workaround to avoid this type of behavior?
setAudioRoute()
- Callkeep: 4.3.2 - React Native: 0.64 - iOS: 15.2 - Android: - Phone model: iPhone 6s Plus, iPhone 12
I submitted a PR with a fix to this issue @nagyszili can you please test?
Bug report
[x] I've checked the example to reproduce the issue.
Reproduced on:
Description
If there is an active session and I call the
getAudioRoutes()
it changes the audio route, because there is asetCategory
executed in thegetAudioInputs
https://github.com/react-native-webrtc/react-native-callkeep/blob/1c798d66e459abce943aedcc419838cf9c3fc29e/ios/RNCallKeep/RNCallKeep.m#L516https://developer.apple.com/documentation/avfaudio/avaudiosession/1616583-setcategory?language=objc
There is any workaround to avoid this type of behavior?
Steps to Reproduce
getAudioRoutes()
setAudioRoute()
Versions