Is it possible to modify AVAudioSession Category and Mode?
I have noticed that webrtc is using playAndRecord as category and voiceChat as mode by default.
However, even after i set it manually as below it still takes PlayAndRecord
rtcAudioSession.setCategory(AVAudioSession.Category.playback.rawValue, with:[.mixWithOthers])
rtcAudioSession.setMode(AVAudioSession.Mode.spokenAudio.rawValue)
I want to make sure that peer connection does not request access to microphone as it is being used by different process in my application.
Is there any other way to specify category and mode ?