iOS Audio not working during call answered when phone is locked. WebRTC used for calling

后端 未结 2 2004
忘了有多久
忘了有多久 2021-01-13 17:47

I am facing a problem with Audio When using Callkit with WebRTC for VOIP call, While answering the call from Lock Screen.

General Functionality :

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-13 18:48

    I am able to resolve this issue.

    Steps that I followed -

    • I checked the code related to WebRTC here

    • I added RTCAudioSession header file which is actually a private class of Webrtc. So every time I receive a call event from signaling, I enable RTCAudiosession and on end of the call, I disable it.

    • I have to render the incoming streams to a dummy view (Although it is not displayed when the call is going and the app is not yet open, but it is required to make audio working).

    I hope this will help if someone is facing the same issue.

提交回复
热议问题