net.sf.fmj.media.rtp
Class RTCPPacket

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTCPPacket

public class RTCPPacket
extends java.lang.Object

Represents an RTCP Packet

Version:
1-1-alpha
Author:
Andrew G D Rowley

Field Summary
static int PT_APP
          RTCP APP Packet
static int PT_BYE
          RTCP BYE Packet
static int PT_RR
          RTCP RR Packet
static int PT_SDES
          RTCP SDES Packet
static int PT_SR
          RTCP SR Packet
 
Constructor Summary
RTCPPacket(byte[] data, int offset, int length)
          Creates a new RTCPPacket
RTCPPacket(java.net.DatagramPacket packet)
          Creates a new RTCPPacket
RTCPPacket(RTCPHeader header, byte[] data)
          Creates a new RTCPPacket
 
Method Summary
 byte[] getRtcpData()
           
 RTCPHeader getRtcpHeader()
           
 int getRtcpLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PT_SR

public static final int PT_SR
RTCP SR Packet

See Also:
Constant Field Values

PT_RR

public static final int PT_RR
RTCP RR Packet

See Also:
Constant Field Values

PT_SDES

public static final int PT_SDES
RTCP SDES Packet

See Also:
Constant Field Values

PT_BYE

public static final int PT_BYE
RTCP BYE Packet

See Also:
Constant Field Values

PT_APP

public static final int PT_APP
RTCP APP Packet

See Also:
Constant Field Values
Constructor Detail

RTCPPacket

public RTCPPacket(java.net.DatagramPacket packet)
           throws java.io.IOException
Creates a new RTCPPacket

Parameters:
packet - The datagram to read the packet from
Throws:
java.io.IOException

RTCPPacket

public RTCPPacket(byte[] data,
                  int offset,
                  int length)
           throws java.io.IOException
Creates a new RTCPPacket

Parameters:
data - The data to read the packet from
offset - The offset into the data
length - The length of the data
Throws:
java.io.IOException

RTCPPacket

public RTCPPacket(RTCPHeader header,
                  byte[] data)
Creates a new RTCPPacket

Parameters:
header - The packet header
data - The packet data
Method Detail

getRtcpHeader

public RTCPHeader getRtcpHeader()
Returns:
The header of the packet

getRtcpData

public byte[] getRtcpData()
Returns:
The data of the packet

getRtcpLength

public int getRtcpLength()
Returns:
The length of the data (not the header length field)