INNER CODE UNIT · Java
setDestinationAddress
fyhertz/libstreaming · src/net/majorkernelpanic/streaming/MediaStream.java:126
public void setDestinationAddress(InetAddress dest) {
mDestination = dest;
}
/**
* Sets the destination ports of the stream.
* If an odd number is supplied for the destination port then the next
* lower even number will be used for RTP and it will be used for RTCP.
* If an even number is supplied, it will be used for RTP and the next odd
* number will be used for RTCP.
* @param dport The destination port
*/
public void setDestinationPorts(int dport) {
if (dport % 2 == 1) {
mRtpPort = dport-1;
mRtcpPort = dport;
} else {
mRtpPort = dport;