INNER CODE UNIT · Java

setTimeToLive

fyhertz/libstreaming · src/net/majorkernelpanic/streaming/MediaStream.java:175

	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. 
	 **/
	public int[] getDestinationPorts() {
		return new int[] {
				mRtpPort,
				mRtcpPort
		};
	}

	/** 
	 * Returns a pair of source ports, the first one is the 
	 * one used for RTP and the second one is used for RTCP. 

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…