|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--local.net.RtpPacket
RtpPacket implements a RTP packet.
| Constructor Summary | |
RtpPacket(byte[] buffer,
int packet_length)
Creates a new RTP packet |
|
| Method Summary | |
int |
getCscrCount()
Gets the CSCR count (CC) |
long[] |
getCscrList()
Gets the CSCR list |
int |
getHeaderLength()
Gets the RTP header length |
int |
getLength()
Gets the RTP packet length |
byte[] |
getPacket()
Gets the RTP packet |
byte[] |
getPayload()
Gets the payload |
int |
getPayloadLength()
Gets the RTP header length |
int |
getPayloadType()
Gets the payload type (PT) |
int |
getSequenceNumber()
Gets the sequence number |
long |
getSscr()
Gets the SSCR |
long |
getTimestamp()
Gets the timestamp |
int |
getVersion()
Gets the version (V) |
boolean |
hasExtension()
Whether has extension (X) |
boolean |
hasMarker()
Whether has marker (M) |
boolean |
hasPadding()
Whether has padding (P) |
void |
init(int ptype)
init the RTP packet header (only PT) |
void |
init(int ptype,
int seqn,
long timestamp,
long sscr)
init the RTP packet header (PT, SQN, TimeStamp, SSCR) |
void |
init(int ptype,
long sscr)
init the RTP packet header (PT and SSCR) |
void |
setCscrList(long[] cscr)
Sets the CSCR list |
void |
setExtension(boolean x)
Set extension (X) |
void |
setMarker(boolean m)
Set marker (M) |
void |
setPadding(boolean p)
Set padding (P) |
void |
setPayload(byte[] payload,
int len)
Sets the payload |
void |
setPayloadLength(int len)
Sets the RTP payload length |
void |
setPayloadType(int pt)
Sets the payload type (PT) |
void |
setSequenceNumber(int sn)
Sets the sequence number |
void |
setSscr(long ssrc)
Sets the SSCR |
void |
setTimestamp(long timestamp)
Sets the timestamp |
void |
setVersion(int v)
Sets the version (V) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RtpPacket(byte[] buffer,
int packet_length)
| Method Detail |
public byte[] getPacket()
public int getLength()
public int getHeaderLength()
public int getPayloadLength()
public void setPayloadLength(int len)
public int getVersion()
public void setVersion(int v)
public boolean hasPadding()
public void setPadding(boolean p)
public boolean hasExtension()
public void setExtension(boolean x)
public int getCscrCount()
public boolean hasMarker()
public void setMarker(boolean m)
public int getPayloadType()
public void setPayloadType(int pt)
public int getSequenceNumber()
public void setSequenceNumber(int sn)
public long getTimestamp()
public void setTimestamp(long timestamp)
public long getSscr()
public void setSscr(long ssrc)
public long[] getCscrList()
public void setCscrList(long[] cscr)
public void setPayload(byte[] payload,
int len)
public byte[] getPayload()
public void init(int ptype)
public void init(int ptype,
long sscr)
public void init(int ptype,
int seqn,
long timestamp,
long sscr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||