Thanks for the answer, it is working now ! To be able to send a stream with VLC, I would have a few question about callbacks (always following simpleua.c model) : - on-rx-request : I would just remove *pjmedia_endpt_create_sdp* to create manually a sdp session to be used by *pjsip_inv_answer*, am I right ? - call_on_media_update : this should be where I use VLC to send my stream. Which function is calling this callback ? Cheers, Damien On Mon, Jul 14, 2008 at 5:48 PM, Benny Prijono <bennylp at pjsip.org> wrote: > 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 > > > _______________________________________________ > 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/20080715/2e3d7319/attachment.html