Class FlexFec03Packet

  • All Implemented Interfaces:
    org.jitsi.utils.ByteArrayBuffer

    public class FlexFec03Packet
    extends RawPacket
    Author:
    bbaldino Based on FlexFec draft -03 https://tools.ietf.org/html/draft-ietf-payload-flexible-fec-scheme-03 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |R|F| P|X| CC |M| PT recovery | length recovery | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TS recovery | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRCCount | reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC_i | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SN base_i |k| Mask [0-14] | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |k| Mask [15-45] (optional) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |k| | +-+ Mask [46-108] (optional) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... next in SSRC_i ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    • Method Detail

      • getProtectedSequenceNumbers

        public List<Integer> getProtectedSequenceNumbers()
        Get the list of media packet sequence numbers protected by this FlexFec03Packet
        Returns:
        the list of media packet sequence numbers protected by this FlexFec03Packet
      • getFlexFecHeaderSize

        public int getFlexFecHeaderSize()
        Get the size of the flexfec header for this packet
        Returns:
        the size of the flexfec header for this packet
      • getProtectedSsrc

        public long getProtectedSsrc()
        Get the media ssrc protected by this flexfec packet
        Returns:
        the media ssrc protected by this flexfec packet
      • getFlexFecPayloadLength

        public int getFlexFecPayloadLength()
        Returns the size of the FlexFEC payload, in bytes
        Returns:
        the size of the FlexFEC packet payload, in bytes
      • getFlexFecHeaderOffset

        public int getFlexFecHeaderOffset()
        Get the offset at which the FlexFEC header starts
        Returns:
        the offset at which the FlexFEC header starts