How to enable video calls in ipjsua iOS sample project?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am aware that pjsip 2.0 doesn't support video calls on iOS devices yet. But I noticed in sources of ipjsua (iOS sample project) some kind of alpha version  of video calls.

static void vid_show_help(void)
{
pj_bool_t vid_enabled = (app_config.vid.vid_cnt > 0);
puts("+=============================================================================+");
puts("| Video commands: |");
puts("| |");
puts("| vid help Show this help screen |");
puts("| vid enable|disable Enable or disable video in next offer/answer |");
puts("| vid acc show Show current account video settings |");
puts("| vid acc autorx on|off Automatically show incoming video on/off |");
puts("| vid acc autotx on|off Automatically offer video on/off |");
puts("| vid acc cap ID Set default capture device for current acc |");
puts("| vid acc rend ID Set default renderer device for current acc |");
puts("| vid call rx on|off N Enable/disable video RX for stream N in curr call |");
puts("| vid call t x on|off N Enable/disable video TX for stream N in curr call |");
puts("| vid call add Add video stream for current call |");
puts("| vid call enable|disable N Enable/disable stream #N in current call |");
puts("| vid call cap N ID Set capture dev ID for stream #N in current call |");
puts("| vid dev list List all video devices |");
puts("| vid dev refresh Refresh video device list |");
puts("| vid dev prev on|off ID Enable/disable preview for specified device ID |");
puts("| vid codec list List video codecs |");
puts("| vid codec prio ID PRIO Set codec ID priority to PRIO |");
puts("| vid codec fps ID NUM DEN Set codec ID framerate to (NUM/DEN) fps |");
puts("| vid codec bw ID AVG MAX Set codec ID bitrate to AVG & MAX kbps |");
puts("| vid codec size ID W H Set codec ID size/resolution to W x H |");
puts("| vid win list List all active video windows |");
puts("| vid win arrange Auto arrange windows |");
puts("| vid win show|hide ID Show/hide the specified video window ID |");
puts("| vid win move ID X Y Move window ID to position X,Y |");
puts("| vid win resize ID w h Resize window ID to the specified width, height |");
puts("+=============================================================================+");
printf("| Video will be %s in the next offer/answer %s |\n",
(vid_enabled? "enabled" : "disabled"), (vid_enabled? " " : ""));
puts("+=============================================================================+");
}



I compiled pjsip for iOS with #define PJMEDIA_HAS_VIDEO 1.

When I am doing app-to-app voice call, I am trying to add video call to active connection using this command:

vid call add

Video call doesn't start and the app prints this log:

 pjsua_vid.c !Call 0: set video stream, op=1
 pjsua_media.c .RTP socket reachable at 10.10.11.253:4002
 pjsua_media.c .RTCP socket reachable at 10.10.11.253:4003
 pjsua_vid.c .Unable to create re-INVITE: No SDP payload format in the media line (PJMEDIA_SDP_ENOFMT) [status=220032]
 pjsua_app.c Error modifying video stream: No SDP payload format in the media line (PJMEDIA_SDP_ENOFMT)



If I will try to list available video codecs, I will see this:

vid codec list

 pjsua_app.c !Found 0 video codecs:
 pjsua_app.c codec id prio fps bw(kbps) size
 pjsua_app.c ------------------------------------------



So it seems like the problem in missing video codecs, but where can I find them?

Does any one succeeded running video call using ipjsua app on iOS device?

Regards,
Oleg Lutsenko




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux