public class RTPPacket
extends java.lang.Object
Constructor and Description |
---|
RTPPacket(byte[] data,
int offset,
int length)
Creates a new RTPPacket
|
RTPPacket(java.net.DatagramPacket packet)
Creates a new RTPPacket
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getRtpData()
Returns the data contained in this packet.
|
RTPHeader |
getRtpHeader()
Returns the RTP Header of this packet.
|
int |
getRtpLength()
Returns the length of this packet.
|
public RTPPacket(java.net.DatagramPacket packet) throws java.io.IOException
packet
- The datagram to get the packet fromjava.io.IOException
- I/O Exceptionpublic RTPPacket(byte[] data, int offset, int length) throws java.io.IOException
offset
- the offset after which the RTP packet startslength
- the total lengthdata
- The datagram to get the packet fromjava.io.IOException
- I/O Exceptionpublic RTPHeader getRtpHeader()
public byte[] getRtpData()
public int getRtpLength()