WebRTC + Callkit

I am facing the following issue only on iOS 11.2.x.


1. My phone is locked.

2. I recieve and incoming voip call on the locked screen.

3. When user taps speaker button on CallKit provided screen system enables speaker, the icon shows highlighted but soon chnages back to disabled state (The speaker state is on though).

4. If user taps again on the speaker, it does not turn off though the icon is seen as off. To disable the speaker user has to tap the button twice.

Is this some issue with a conbination of WebRTC and Call Kit. The following link is a refereal from Stack overflow

https://stackoverflow.com/questions/48023629/abnormal-behavior-of-speaker-button-on-system-provided-call-screen

Replies

Having this same issue, have you found a solution?


Thanks,

Hi Shweta,


Did you find any working solution for this issue?
I'm also having the same issue. I couldn't fix it.

I found a solution but no idea why.
Call [[AVAudioSession sharedInstance] setMode:AVAudioSessionModeDefault error:nil]; before join webrtc audio will make speaer button worked
And remember not call [AVAudioSession sharedInstance] setCategory: after join audio, it will make speaker button not work again.

  • Can you share the code for audio session configuration

Add a Comment