Adding video to PJSIP by libvlc

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

 



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-0001.html>


[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