jlibrtp
Class RtcpPktRTPFB

java.lang.Object
  extended by jlibrtp.RtcpPkt
      extended by jlibrtp.RtcpPktRTPFB

public class RtcpPktRTPFB
extends RtcpPkt

RTCP packets for RTP Feedback Messages In line with RFC 4585, this packet currently only supports NACKs

Author:
Arne Kepp

Field Summary
protected  int[] BLP
          bitmask of following lost packets, shared index with PID
protected  boolean notRelevant
          If this packet was for a different SSRC
protected  int[] PID
          RTP sequence numbers of lost packets
protected  long ssrcMediaSource
          SSRC we are sending feeback to
 
Fields inherited from class jlibrtp.RtcpPkt
itemCount, length, packetType, padding, problem, rawPkt, received, ssrc, time, version
 
Constructor Summary
protected RtcpPktRTPFB(byte[] aRawPkt, int start, RTPSession rtpSession)
          Constructor that parses a raw packet to retrieve information
protected RtcpPktRTPFB(long ssrcPacketSender, long ssrcMediaSource, int FMT, int[] PID, int[] BLP)
          Constructor for RTP Feedback Message
 
Method Summary
protected  void debugPrint()
          Debug purposes only
protected  void encode()
          Encode the packet into a byte[], saved in .rawPkt CompRtcpPkt will call this automatically
protected  int getFMT()
          Get the FMT (Feedback Message Type)
 
Methods inherited from class jlibrtp.RtcpPkt
check, parseHeaders, writeHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notRelevant

protected boolean notRelevant
If this packet was for a different SSRC


ssrcMediaSource

protected long ssrcMediaSource
SSRC we are sending feeback to


PID

protected int[] PID
RTP sequence numbers of lost packets


BLP

protected int[] BLP
bitmask of following lost packets, shared index with PID

Constructor Detail

RtcpPktRTPFB

protected RtcpPktRTPFB(long ssrcPacketSender,
                       long ssrcMediaSource,
                       int FMT,
                       int[] PID,
                       int[] BLP)
Constructor for RTP Feedback Message

Parameters:
ssrcPacketSender - SSRC of sender, taken from RTPSession
ssrcMediaSource - SSRC of recipient of this message
FMT - the Feedback Message Subtype
PID - RTP sequence numbers of lost packets
BLP - bitmask of following lost packets, shared index with PID

RtcpPktRTPFB

protected RtcpPktRTPFB(byte[] aRawPkt,
                       int start,
                       RTPSession rtpSession)
Constructor that parses a raw packet to retrieve information

Parameters:
aRawPkt - the raw packet to be parsed
start - the start of the packet, in bytes
rtpSession - the session on which the callback interface resides
Method Detail

encode

protected void encode()
Encode the packet into a byte[], saved in .rawPkt CompRtcpPkt will call this automatically

Overrides:
encode in class RtcpPkt

getFMT

protected int getFMT()
Get the FMT (Feedback Message Type)

Returns:
value stored in .itemcount, same field

debugPrint

protected void debugPrint()
Debug purposes only