?? rtppacket.java
字號:
public class RTPPacket
{ // used to identify separate streams that may contribute to this packet
private long SSRC;
// incrementing identifier for each packet that is sent
private long sequenceNumber;
// used to place this packet in the correct timing order
// that is, where this packet fits in time based media
private long timeStamp;
// the type of the media data, or the payload type
private long payloadType;
// the actual media data, also called the payload
private byte data[];
// the get and set methods
public long getSSRC() { return this.SSRC; }
public void setSSRC(long SSRC) { this.SSRC = SSRC; }
public long getSequenceNumber() { return this.sequenceNumber; }
public void setSequenceNumber(long sequenceNumber)
{ this.sequenceNumber = sequenceNumber; }
public long getTimeStamp() { return this.timeStamp; }
public void setTimeStamp(long timeStamp) { this.timeStamp = timeStamp; }
public long getPayloadType() { return this.payloadType; }
public void setPayloadType(long payloadType)
{ this.payloadType = payloadType; }
public byte[] getData() { return this.data; }
public void setData(byte[] data) { this.data = data; }
public String toString() {
return
"RTPPacket " + sequenceNumber +
": [" +
" ssrc=0x" + SSRC +
", timestamp=" + timeStamp +
", payload type=" + payloadType +
" ]";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -