Open LunatiqueCoder opened 2 years ago
@criszz77 That alone didn't work for me, I also had to change audioSession mode to AVAudioSessionModeDefault instead of AVAudioSessionModeVoiceChat . But your changes also helped, thank you!
I'm still seeing the volume reduced when I make all of the above recommended changes. It isn't as bad as before - but it still goes down... maybe to about half of what it was initially. @qsdnedzid did you have to make any further changes other than what you mentioned?
👋 Hello!
Thank you for this great library! Really solved all our issues.
🪲 PROBLEM:
We're using this library along with react-native-video and react-native-sound, and when we record, the volume is going down. This wouldn't be such a great deal, but it gets stuck at a lower level.
⭐️ SOLUTION
Followed this solution https://stackoverflow.com/a/27020411/14056591
Applied it here (line 33 and 38): https://github.com/xiqi/react-native-live-audio-stream/blob/master/ios/RNLiveAudioStream.m#L33 https://github.com/xiqi/react-native-live-audio-stream/blob/master/ios/RNLiveAudioStream.m#L38
Changed
AVAudioSessionCategoryOptionDuckOthers
toAVAudioSessionCategoryOptionDefaultToSpeaker
This would be the diff:
This issue body was partially generated by patch-package.