PJSIP:背景中的视频通话

时间:2017-07-19 09:15:31

标签: ios objective-c pjsip callkit

我正在研究PJSIP。两种方式视频和音频通话工作正常,但问题是当应用程序处于后台时我拨打了新的来电,callKit正在显示新的来电,我接听了电话。然后app从背景移动到前景,但视频没有显示,音频正在运行。如果我在前台拨打电话,那么两端都会显示视频。 请在下面找到日志:

15:48:19.251 ios_opengl_dev  .......Failed to initialize iOS OpenGL because we are in background

15:48:19.251     vid_port.c  .......Closing OpenGL renderer..

15:48:19.319    pjsua_vid.c  .......Window 0: destroying..

15:48:19.319  pjsua_media.c  ....pjsua_vid_channel_update() failed for call_id 0 media 1: video subsystem not initialized (PJMEDIA_EVID_INIT)

15:48:19.319  pjsua_media.c  ....Error updating media call00:1: video subsystem not initialized (PJMEDIA_EVID_INIT)

15:48:19.319    pjsua_app.c  ...Call 0 media 0 [type=audio], status is Active

15:48:19.319    pjsua_aud.c  ...Conf connect: 3 --> 0

15:48:19.319    pjsua_app.c  ....Turning sound device ON

15:48:19.319   conference.c  ....Port 3 (sip:linchpin@192.168.1.7) transmitting to port 0 (Master/sound)

15:48:19.319    pjsua_aud.c  ...Conf connect: 0 --> 3

15:48:19.319   conference.c  ....Port 0 (Master/sound) transmitting to port 3 (sip:linchpin@192.168.1.7)

15:48:19.319    pjsua_app.c  ...Call 0 media 1 [type=video], status is Error

15:48:19.319    pjsua_app.c  ...Just rejected incoming video offer on call 0, use "vid call enable 1" or "vid call add" to enable video!

1 个答案:

答案 0 :(得分:0)

由于PJSIP有时需要花费一些时间来启动摄像头,因此在接听电话时会稍作延迟。