[Live-devel] port numbers problem

Ross Finlayson finlayson at live555.com
Mon Feb 8 21:00:24 PST 2010


>I need to use certain predefined port numbers for RTP streaming, for
>example 60004 for audio substream, 60006 for audio...

Is your streaming multicast or unicast?  If it's multicast, you can 
easily define and use a single port number.  However, if your 
streaming is unicast, then you can't do this, because multiple 
clients get multiple (unicast) streams, each using a different port 
number.

However, you can set the "initialPortNum" parameter to the 
"OnDemandServerMediaSubsession" constructor to - for example - 60004 
(instead of its default value of 6970), and this will then become the 
starting point for the port numbers for unicast streams.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list