<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
FONT-SIZE: 10.5pt; FONT-FAMILY: Microsoft YaHei UI; COLOR: #000000; LINE-HEIGHT: 1.5; 36719: ; 38597: ; 40657:
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.17088"></HEAD>
<BODY style="MARGIN: 10px">
<DIV style="FONT-FAMILY: Tahoma">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.</DIV>
<DIV style="FONT-FAMILY: Tahoma">I want to modify the "LIVE555 Streaming Media"
source code like below.<SPAN
style="WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; FLOAT: none; COLOR: rgb(51,51,51); FONT: 14px/25px Verdana, Arial; DISPLAY: inline !important; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">I
do not know whether it is correct to do it in this way,please help
me.</SPAN></DIV>
<DIV style="FONT-FAMILY: Tahoma"><SPAN
style="WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; FLOAT: none; COLOR: rgb(51,51,51); FONT: 14px/25px Verdana, Arial; DISPLAY: inline !important; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">
<DIV>all modification in OnDemandServerMediaSubsession::getStreamParameters()
like below:</DIV>
<DIV>1)To allow reuse of socket numbers <SPAN
style="WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; FLOAT: none; COLOR: rgb(51,51,51); FONT: 14px/25px Verdana, Arial; DISPLAY: inline !important; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px"></SPAN>modify
line 140:NoReuse dummy(envir()); to <SPAN style="FONT-WEIGHT: bold">//NoReuse
dummy(envir()); </SPAN></DIV>
<DIV><SPAN style="FONT-WEIGHT: normal"><STRONG style="FONT-WEIGHT: normal">2)To
allow rtp and rtcp use the same port modify line 157:serverRTCPPort =
++serverPortNum; to <SPAN style="FONT-WEIGHT: bold">serverRTCPPort =
serverPortNum;</SPAN>(remove the ++ operation) </STRONG></SPAN></DIV>
<DIV><SPAN style="FONT-WEIGHT: normal"></SPAN> </DIV>
<DIV><SPAN style="FONT-WEIGHT: normal">I must use UDP to transport the data and
must use a few port in all streams.</SPAN></DIV>
<DIV><SPAN style="FONT-WEIGHT: normal"><SPAN
style="WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; FLOAT: none; COLOR: rgb(51,51,51); FONT: 14px/25px Verdana, Arial; DISPLAY: inline !important; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">I
do not know whether it is correct to do it in this way,please help me.Thank you
very much.</SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-WEIGHT: normal"></SPAN></SPAN> </DIV></DIV>
<HR style="HEIGHT: 1px; WIDTH: 210px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana; MARGIN: 10px">
<DIV>kingaceck</DIV></DIV></SPAN></DIV></BODY></HTML>