public class RtpPkt
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
RtpPkt(byte[] aRawPkt,
int packetSize)
Construct a packet-instance from an raw packet (believed to be RTP).
|
protected |
RtpPkt(long aTimeStamp,
long syncSource,
int seqNum,
int plt,
byte[] pl)
Construct a packet-instance.
|
Modifier and Type | Method and Description |
---|---|
protected int |
checkPkt()
Reading stuff
|
protected byte[] |
encode()
Encodes the a
|
protected long[] |
getCsrcArray() |
protected int |
getCsrcCount() |
protected int |
getHeaderLength() |
protected byte[] |
getPayload() |
protected int |
getPayloadLength() |
protected int |
getPayloadType() |
protected int |
getSeqNumber() |
protected long |
getSsrc() |
protected long |
getTimeStamp() |
protected int |
getVersion() |
protected boolean |
isMarked() |
protected void |
printPkt() |
protected int |
setCsrcs(long[] contributors) |
protected void |
setMarked(boolean mark)
Setting stuff
|
protected int |
setPayload(byte[] data) |
protected int |
setPayloadType(int plType) |
protected int |
setSeqNumber(int number) |
protected int |
setSsrc(long source) |
protected int |
setTimeStamp(long time) |
protected RtpPkt(long aTimeStamp, long syncSource, int seqNum, int plt, byte[] pl)
aTimeStamp
- RTP timestamp for datasyncSource
- the SSRC, usually taken from RTPSessionseqNum
- Sequency numberplt
- Type of payloadpl
- Payload, the actual dataprotected RtpPkt(byte[] aRawPkt, int packetSize)
aRawPkt
- The data-part of a UDP-packet believed to be RTPpacketSize
- the number of valid octets in the packet, should be aRawPkt.lengthprotected int checkPkt()
protected int getHeaderLength()
protected int getPayloadLength()
protected int getVersion()
protected boolean isMarked()
protected int getPayloadType()
protected int getSeqNumber()
protected long getTimeStamp()
protected long getSsrc()
protected int getCsrcCount()
protected long[] getCsrcArray()
protected byte[] encode()
protected void printPkt()
protected void setMarked(boolean mark)
protected int setPayloadType(int plType)
protected int setSeqNumber(int number)
protected int setTimeStamp(long time)
protected int setSsrc(long source)
protected int setCsrcs(long[] contributors)
protected int setPayload(byte[] data)
protected byte[] getPayload()