[pjsip] Adding video to PJSIP by libvlc

xutm xutom2006 at gmail.com
Thu Aug 20 04:43:28 EDT 2009


Hi jay bing,

I am using VS2005 to develop my IM client. My on_call_state method is
following:

void CUCDlg::on_call_state(pjsua_call_id call_id, pjsip_event *e)
{
    pjsua_call_info call_info;
    CString local_port;
    CString remote_port;

    PJ_UNUSED_ARG(e);

    pjsua_call_get_info(call_id, &call_info);

    PJ_LOG(5, (THIS_FILE, " the call state is '%d' and the role is
'%d'-'%s'", call_info.state, call_info.role, call_info.state_text));

    if (call_info.state == PJSIP_INV_STATE_CONFIRMED) {

        app_config.in_call = PJ_TRUE;

        PJ_LOG(5, (THIS_FILE, "the flag is '%d' and local video port is '%d'
and the remote video port is '%d'",
            call_info.video_enable, call_info.video_local_port,
call_info.video_remote_port));
        if (enable_video && call_info.video_enable &&
call_info.video_remote_port) {
            // here we send the video port to VLC
            EnableHomeVideo(remote_port);
            EnableAwayVideo(local_port);
        }

    }
......
}

2009/8/20 jay bing <jaya.bing at gmail.com>

> hi xutm,
>
> can u elaborate on how to get the rtp callbacks in on_call_state ?
>
>
> On Thu, Aug 20, 2009 at 3:41 AM, xutm <xutom2006 at gmail.com> wrote:
>
>> Actually you can get the audio/video RTP port in callback method
>> on_call_state. Then send the video attributes to VLC.
>>
>> 2009/8/19 SIDIMOULAY <sidimoulay2000 at hotmail.fr>
>>
>> Hi,
>>>
>>> I want to know which files to edit to link vlc to pjsip for video
>>> streaming.
>>>
>>> Regards
>>>
>>>
>>>
>>> __________ Information provenant d'ESET Smart Security, version de la
>>> base des signatures de virus 4348 (20090819) __________
>>>
>>> Le message a été vérifié par ESET Smart Security.
>>>
>>> http://www.eset.com
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090820/d1550c1e/attachment.html>


More information about the pjsip mailing list