Why I get a PJSUA_INVALID_ID for the window ID from incoming call video stream on iOS? Please help

K
Kratos
Fri, Sep 2, 2016 7:10 AM

In my project, I do as the document says, and get the video stream from the pjsua_call_info, but wid == PJSUA_INVALID_ID

pjsua_acc_config cfg; pjsua_acc_config_default(&cfg); cfg.vid_in_auto_show = PJ_TRUE;

int vid_idx; pjsua_vid_win_id wid; vid_idx = pjsua_call_get_vid_stream_idx(call_id); if (vid_idx >= 0) {    pjsua_call_info ci;    pjsua_call_get_info(call_id, &ci);    wid = ci.media[vid_idx].stream.vid.win_in; }
Do I need to send the video stream from the outgoing call device manually or just invoke pjsua_call_make_call ?

In my project, I do as the document says, and get the video stream from the pjsua_call_info, but wid == PJSUA_INVALID_ID pjsua_acc_config cfg; pjsua_acc_config_default(&cfg); cfg.vid_in_auto_show = PJ_TRUE; int vid_idx; pjsua_vid_win_id wid; vid_idx = pjsua_call_get_vid_stream_idx(call_id); if (vid_idx >= 0) { pjsua_call_info ci; pjsua_call_get_info(call_id, &ci); wid = ci.media[vid_idx].stream.vid.win_in; } Do I need to send the video stream from the outgoing call device manually or just invoke pjsua_call_make_call ?