Callkit loudspeaker bug / how WhatsApp fixed it?

前端 未结 5 1304
别那么骄傲
别那么骄傲 2021-02-02 10:08

I have an app with Callkit functionality. When I press the loudspeaker button, it will flash and animate to the OFF state (sometimes the speaker is set to LOUD but

5条回答
  •  长发绾君心
    2021-02-02 10:40

    Maybe you can setMode to AVAudioSessionModeDefault.

    When I use CallKit + WebRTC

    1. I configure AVAudioSessionModeDefault mode.

    2. Alloc CXProvider and reportNewIncomingCallWithUUID

    3. Use WebRTC , after ICEConnected, WebRTC change mode to AVAudioSessionModeVoiceChat, then speaker issue happen.

    4. Later I setMode back to AVAudioSessionModeDefault, the speaker works well.

提交回复
热议问题