[gst-devel] RE : Re: How can I get/set the source port inudpsink?

jp_liu jp_liu at astrocom.cn
Tue Sep 18 13:53:41 CEST 2007


Yang Jiwen, Hello 

you can use dynudpsink instead of udpsink. and then you can g_object_set socket in the element.

jp_liu, jp_liu at astrocom.cn
2007-09-18 
----- Receiving the following content ----- 
From: Yang Jiwen 
Receiver: SP GLE 
Time: 2007-09-18, 15:54:58
Subject: Re: [gst-devel] RE : Re: How can I get/set the source port inudpsink?


Hi,
Thanks for your suggestion, I added SO_REUSEADDR and bind.. something in function gst_multiudpsink_init_send yesterday and it works. I think it's better to add a source port property for it in future. To set the sender's source port freely in udpsink is quite useful especially in some P2P applications, for NAT stuff. 

Regards,
Yang

 
On 9/17/07, SP GLE <spglegle at yahoo.fr> wrote: 
May be you can pass a file descriptor with the 'fd' property.

To manage RTP you will probably have to manage RTCP, so two contigous 
port numbers. Using external fd throught udpsink you are able to do
that.

Regards.

--- Yang Jiwen < grantte at gmail.com> a écrit :

> Anybody can give me some suggestion? how to fill the **source** port 
> by
> myself  when using udpsink?  Many Thanks
>
> Regards,
> J.Yang
>
>
> On 9/14/07, Yang Jiwen <grantte at gmail.com> wrote:
> >
> > Hi guys, 
> >
> > I am in a project of SIP phone software that choose gstreamer to
> handle
> > media streams. I have launched a server bin to send RTP streams to
> the
> > remote party, and also a player bin to receive, decode, and display 
> the
> > streams from the remote party.
> >
> > Now I have a problem, for  NAT traversal issue I have to set the 
> source
> > port in udpsink by myself(set to be the port of the remote party). 
> > But seems that udpsink does not have a property like this to let me
> > do"udpsink srcport=6000" or something. 
> >
> > So where can I set the source port in the source code of udpsink? 
> >
> > Any suggestion will be highly appreciated, thanks in advance.
> >
> > Regards,
> > -- J.Yang
> >
> >
>
>
>
> --
> Regards, 
> Jiwen
> >
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/>
_______________________________________________ 
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



     ______________________________________________________________________________
Stockage illimit?de vos mails avec Yahoo! Mail. Changez aujourd'hui de mail ! 




-- 
Regards,
Jiwen 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070918/aae68bef/attachment.htm>


More information about the gstreamer-devel mailing list