Discussion:
use same UDP port to send all data?
kingaceck
2014-10-20 15:06:00 UTC
Permalink
I have a firewall - between the server and client .The firewall only can open a few port.So the server must use the same UDP port.
I want to modify the "LIVE555 Streaming Media" source code like below.I do not know whether it is correct to do it in this way,please help me.
all modification in OnDemandServerMediaSubsession::getStreamParameters() like below:
1)To allow reuse of socket numbers modify line 140:NoReuse dummy(envir()); to //NoReuse dummy(envir());
2)To allow rtp and rtcp use the same port modify line 157:serverRTCPPort = ++serverPortNum; to serverRTCPPort = serverPortNum;(remove the ++ operation)

I must use UDP to transport the data and must use a few port in all streams.
I do not know whether it is correct to do it in this way,please help me.Thank you very much.




kingaceck
Ross Finlayson
2014-10-20 23:10:48 UTC
Permalink
Post by kingaceck
I want to modify the "LIVE555 Streaming Media" source code
Sorry, but once you've modified the supplied code, you can’t expect any support on this mailing list.
Post by kingaceck
2)To allow rtp and rtcp use the same port
This has been supported (as an option) in the “LIVE555 Streaming Media” code for more than 6 months now (without requiring any modification to the supplied code). See:
http://lists.live555.com/pipermail/live-devel/2014-March/018179.html <http://lists.live555.com/pipermail/live-devel/2014-March/018179.html>

Ross.

Loading...