org.red5.server.net.rtp.rtcp
Class RTCPPacket

java.lang.Object
  extended by org.red5.server.net.rtp.rtcp.RTCPPacket
All Implemented Interfaces:
Packet

public class RTCPPacket
extends Object
implements Packet

Author:
Matteo Merli (matteo.merli@gmail.com)

Nested Class Summary
static class RTCPPacket.Type
           
 
Field Summary
protected  byte count
          varies by packet type
protected  short length
          pkt len in words, w/o this word
protected  byte[] packetBuffer
           
protected  UnsignedByte packetType
          RTCP packet type
protected  boolean padding
          padding flag
protected  UnsignedInt ssrc
           
protected  byte version
          protocol version
 
Constructor Summary
protected RTCPPacket()
           
  RTCPPacket(IoBuffer buffer)
          TODO: At this moment, the RTCP packet is not completely parsed, only some informations are extracted such as the SSRC identificator.
 
Method Summary
 UnsignedInt getSsrc()
           
 RTCPPacket.Type getType()
           
 void setSsrc(UnsignedInt ssrc)
           
 IoBuffer toByteBuffer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

protected byte version
protocol version


padding

protected boolean padding
padding flag


count

protected byte count
varies by packet type


packetType

protected UnsignedByte packetType
RTCP packet type


length

protected short length
pkt len in words, w/o this word


ssrc

protected UnsignedInt ssrc

packetBuffer

protected byte[] packetBuffer
Constructor Detail

RTCPPacket

public RTCPPacket(IoBuffer buffer)
TODO: At this moment, the RTCP packet is not completely parsed, only some informations are extracted such as the SSRC identificator. The rest of the packet is saved but not processed nor validated (for now).


RTCPPacket

protected RTCPPacket()
Method Detail

getSsrc

public UnsignedInt getSsrc()
Returns:
Returns the ssrc.

setSsrc

public void setSsrc(UnsignedInt ssrc)
Parameters:
ssrc - The ssrc to set.

getType

public RTCPPacket.Type getType()

toByteBuffer

public IoBuffer toByteBuffer()
Specified by:
toByteBuffer in interface Packet


Copyright © 2006-2009 The Red5 Project