ios video calling integration.

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

 



Hii all,

currently i am working on video calling  and face some issues.
my code are as below


static void on_call_media_state(pjsua_call_id call_id)

{

    pjsua_call_info call_info;

    unsigned mi;

    pj_bool_t has_error = PJ_FALSE;


    pjsua_call_get_info(call_id, &call_info);


    for (mi=0; mi<call_info.media_cnt; ++mi) {

on_call_generic_media_state(&call_info, mi, &has_error);


switch (call_info.media[mi].type) {

case PJMEDIA_TYPE_AUDIO:

    on_call_audio_state(&call_info, mi, &has_error);

    break;

case PJMEDIA_TYPE_VIDEO:

    on_call_video_state(&call_info, mi, &has_error);

    break;

default:

    /* Make gcc happy about enum not handled by switch/case */

    break;

}

    }

}

void on_call_video_state(pjsua_call_info *ci, unsigned mi,

                                pj_bool_t *has_error)

{

    if (ci->media_status != PJSUA_CALL_MEDIA_ACTIVE)

        return;

    

    arrange_window(ci->media[mi].stream.vid.win_in);

    PJ_UNUSED_ARG(has_error);

}


in ci->media[mi].stream.vid.win_in i got -1 every time and thats why i cant get the video stream.

please help will be very appreciate.

Thank you. 


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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