Low AVPlayer volume while in a VoIP Call

Hello,


Our used case is bi-directional Audio + Video over IP iOS application.


We noticed that, in our app, if a user is playing audio using AVPlayer and while playing the AVPlayer if the user initiates Audio + Video Call in the app, the volume of the AVPlayer gets reduced. When I am connected to the VoIP call, I am able to hear AVPlayer audio and the audio of remote participant in the call too, but the AVPlayer audio volume got lowered than what it was before. I noticed that AVPlayer audio volume stays low even after the call is disconnected, it never gets restored back.


Is this expected? If yes, is there a workaround for this problem.


Thanks,

Piyush

Having similar issue while using CallKit to make a call. The difference is that after the call disconnected, the volume will become nomal from my side.


So any solutions/suggestions?

I don't know how to resolve the issue of the reduced volume when a call is active. However, you can avoid the issue of audio volume stays low even after the call is disconnected: set AVAudioSessionModeDefault mode for an audio session when the call is finished.
Low AVPlayer volume while in a VoIP Call
 
 
Q