Open denmorgenshtern opened 2 years ago
Hi @denmorgenshtern ,
Sorry for the late response. You're right.
It's likely that when you play a sound, you set the category to the play mode and it just removes microphone record ability.
By default, AVAudioSession is configured by webrtc with .playAndRecord mode. You can get the default configuration with this method
let webRTCConfiguration = RTCAudioSessionConfiguration.init()
I mean, you can reset the AVAudioSession to the values in webRTCConfiguration
after your delegate method is called audioPlayerDidFinishPlaying
I hope it helps, please let me know if we can help further.
Playing sound while Ant Media Client Mode.publish - the stream sound disappears.
I guess, problem in correct AVAudioSession category/mode? But i've tried different with no success.
My example:
UPD: Setting
after audioPlayerDidFinishPlaying partially solves the problem