Class RTCPFBPacket

  • Direct Known Subclasses:
    NACKPacket, RTCPREMBPacket, RTCPTCCPacket

    public class RTCPFBPacket
    extends net.sf.fmj.media.rtp.RTCPPacket
    Created by gp on 6/27/14. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P| FMT | PT | length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC of packet sender | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC of media source | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : Feedback Control Information (FCI) : : :
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] fci  
      int fmt
      Feedback message type (FMT).
      static int PSFB  
      static int RTPFB  
      long senderSSRC
      SSRC of packet sender.
      long sourceSSRC
      SSRC of media source.
      • Fields inherited from class net.sf.fmj.media.rtp.RTCPPacket

        APP, base, BYE, COMPOUND, RR, SDES, SR, type
      • Fields inherited from class net.sf.fmj.media.rtp.util.Packet

        data, flags, length, offset, receiptTime, received
    • Constructor Summary

      Constructors 
      Constructor Description
      RTCPFBPacket​(int fmt, int type, long senderSSRC, long sourceSSRC)  
      RTCPFBPacket​(net.sf.fmj.media.rtp.RTCPCompoundPacket base)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assemble​(DataOutputStream dataoutputstream)
      int calcLength()
      static org.jitsi.utils.ByteArrayBuffer getFCI​(org.jitsi.utils.ByteArrayBuffer baf)
      Gets the Feedback Control Information (FCI) field of an RTCP FB message.
      long getSenderSSRC()  
      long getSourceSSRC()  
      static long getSourceSSRC​(org.jitsi.utils.ByteArrayBuffer baf)
      Gets the SSRC of the media source of the packet specified in the ByteArrayBuffer passed in as an argument.
      static boolean isPSFBPacket​(org.jitsi.utils.ByteArrayBuffer baf)
      Gets a boolean that indicates whether or not the packet specified in the ByteArrayBuffer passed in as an argument is an RTP FB packet.
      static boolean isRTCPFBPacket​(org.jitsi.utils.ByteArrayBuffer baf)
      Gets a boolean that indicates whether or not the packet specified in the ByteArrayBuffer that is passed in the first argument is an RTCP RTPFB or PSFB packet.
      static boolean isRTPFBPacket​(org.jitsi.utils.ByteArrayBuffer baf)
      Gets a boolean that indicates whether or not the packet specified in the ByteArrayBuffer passed in as an argument is an RTP FB packet.
      RawPacket toRawPacket()  
      String toString()  
      • Methods inherited from class net.sf.fmj.media.rtp.util.Packet

        clone
    • Field Detail

      • fci

        public byte[] fci
      • fmt

        public int fmt
        Feedback message type (FMT).
      • senderSSRC

        public long senderSSRC
        SSRC of packet sender.
      • sourceSSRC

        public long sourceSSRC
        SSRC of media source.
    • Constructor Detail

      • RTCPFBPacket

        public RTCPFBPacket​(int fmt,
                            int type,
                            long senderSSRC,
                            long sourceSSRC)
      • RTCPFBPacket

        public RTCPFBPacket​(net.sf.fmj.media.rtp.RTCPCompoundPacket base)
    • Method Detail

      • isRTCPFBPacket

        public static boolean isRTCPFBPacket​(org.jitsi.utils.ByteArrayBuffer baf)
        Gets a boolean that indicates whether or not the packet specified in the ByteArrayBuffer that is passed in the first argument is an RTCP RTPFB or PSFB packet.
        Parameters:
        baf - the ByteArrayBuffer that holds the RTCP packet.
        Returns:
        true if the packet specified in the ByteArrayBuffer that is passed in the first argument is an RTCP RTPFB or PSFB packet, otherwise false.
      • isRTPFBPacket

        public static boolean isRTPFBPacket​(org.jitsi.utils.ByteArrayBuffer baf)
        Gets a boolean that indicates whether or not the packet specified in the ByteArrayBuffer passed in as an argument is an RTP FB packet.
        Parameters:
        baf - the ByteArrayBuffer that holds the packet
        Returns:
        true if the packet specified in the ByteArrayBuffer passed in as an argument is an RTP FB packet, otherwise false.
      • isPSFBPacket

        public static boolean isPSFBPacket​(org.jitsi.utils.ByteArrayBuffer baf)
        Gets a boolean that indicates whether or not the packet specified in the ByteArrayBuffer passed in as an argument is an RTP FB packet.
        Parameters:
        baf - the ByteArrayBuffer that holds the packet
        Returns:
        true if the packet specified in the ByteArrayBuffer passed in as an argument is an RTP FB packet, otherwise false.
      • getSourceSSRC

        public static long getSourceSSRC​(org.jitsi.utils.ByteArrayBuffer baf)
        Gets the SSRC of the media source of the packet specified in the ByteArrayBuffer passed in as an argument.
        Parameters:
        baf - the ByteArrayBuffer that holds the packet
        Returns:
        the SSRC of the media source of the packet specified in the ByteArrayBuffer passed in as an argument, or -1 in case of an error.
      • getFCI

        public static org.jitsi.utils.ByteArrayBuffer getFCI​(org.jitsi.utils.ByteArrayBuffer baf)
        Gets the Feedback Control Information (FCI) field of an RTCP FB message.
        Parameters:
        baf - the ByteArrayBuffer that contains the RTCP message.
        Returns:
        the Feedback Control Information (FCI) field of an RTCP FB message.
      • calcLength

        public int calcLength()
        Specified by:
        calcLength in class net.sf.fmj.media.rtp.RTCPPacket
      • toString

        public String toString()
        Overrides:
        toString in class net.sf.fmj.media.rtp.util.Packet
      • getSenderSSRC

        public long getSenderSSRC()
        Returns:
        the Sender SSRC field of this RTCP feedback packet.
      • getSourceSSRC

        public long getSourceSSRC()
        Returns:
        the Source SSRC field of this RTCP feedback packet.