3rd party media : problem implementing SDP manually

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

 



On Mon, Jul 14, 2008 at 10:27 PM, Damien Herraud <d.herraud at gmail.com>
wrote:

> Hi,
>
>  I am still trying to stream audio/video with VLC, replacing PJMEDIA. I
> have a problem for writing the SDP manually. For a first try, I wrote a SDP
> for streaming a MPEG-1 Audio Layer II file (MP2, static payload 14). My
> code is (a lot is taken from pjmedia_endpt_create_sdp) :
>
>
[snip]


>
>>     /* Since we only support one media stream at present, put the
>>      * SDP connection line in the session level.
>>      */
>>     sdp->conn = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_conn);
>>     sdp->conn->net_type = STR_IN;
>>     sdp->conn->addr_type = STR_IP4;
>>     sdp->conn->addr = sdp->conn->addr;
>>
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

What is that?

[snip]


>
>
> But I get "*pjmedia_sdp_neg_create_w_local_offer: Assertion
> `(status=pjmedia_sdp_validate(local))==0' failed*". I should have an error
> in my SDP but I don't see where ! I did not put a rtpmap but if I understood
> well it should not be needed for a static payload.
>
>
That's correct (for SDP). But I think you still need to put rtpmap even for
static payload for codecs that pjmedia doesn't know (i.e. codecs that are
not registered with codec manager), if you want
pjmedia_session_info_from_sdp()/pjmedia_stream_info_from_sdp() to work.

For the SDP error, you can always step into pjmedia_sdp_validate() or
capture the return value to see what it's complaining about.

Cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080714/2ccbbc4d/attachment.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