Video in pjsip

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

 



Hi Bemali

I just learn from the old thread from this email list, thanks Mude and Nanang
But now I only add SDP into invite, have not handle other part about
video, like media, etc..
This is my first part to add video media description into SDP, hope
this can help you to speed up your progress.


Add code into the pjmedia_endpt_create_sdp function in endpoint.c


/* Add part before assign sdp value to pointer */

pjmedia_sdp_media *mv;
sdp->media_count = 2;

mv = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_media);
sdp->media[1] = mv;

pj_strdup(pool, &mv->desc.media, &STR_VIDEO);
mv->desc.port = 4002;
mv->desc.port_count = 1;
mv->desc.fmt_count = 0;
mv->attr_count = 0;
mv->desc.fmt[mv->desc.fmt_count++] = pj_str("34");
pj_strdup(pool, &mv->desc.transport, &STR_RTP_AVP);
attr = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_attr);
attr->name = pj_str("rtpmap");
attr->value = pj_str("34 H263/90000");
mv->attr[mv->attr_count++] = attr;
attr = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_attr);
attr->name = STR_SENDRECV;
mv->attr[mv->attr_count++] = attr;

/* Orginal  */
 *p_sdp = sdp;

 return PJ_SUCCESS;

--
Web: http://jackytw.blogspot.com
GV: +1-408-512-3803



On Wed, Dec 9, 2009 at 11:28 AM, Bemali Wickramanayake
<bemali371 at gmail.com> wrote:
> Hi,
> We are developing a SIP based platform to enable mobile to TV video calling.
> Can we know whether we can implement a video SIP client using pjsip
> libraries? (whether we can alter the SDP header etc.)?
>
> _______________________________________________
> 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
>
>



[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