INNER CODE UNIT · Java
setOutputStream
fyhertz/libstreaming · src/net/majorkernelpanic/streaming/MediaStream.java:164
public void setOutputStream(OutputStream stream, byte channelIdentifier) {
mOutputStream = stream;
mChannelIdentifier = channelIdentifier;
}
/**
* Sets the Time To Live of packets sent over the network.
* @param ttl The time to live
* @throws IOException
*/
public void setTimeToLive(int ttl) throws IOException {
mTTL = ttl;
}
/**
* Returns a pair of destination ports, the first one is the
* one used for RTP and the second one is used for RTCP.