Class FlexFec03Mask


  • public class FlexFec03Mask
    extends Object
    Models a FlexFec-03 mask field
    • Constructor Detail

      • FlexFec03Mask

        public FlexFec03Mask​(int baseSeqNum,
                             List<Integer> protectedSeqNums)
                      throws FlexFec03Mask.MalformedMaskException
        Create a mask from a base sequence number and a list of protected sequence numbers
        Parameters:
        baseSeqNum - the base sequence number to use for the mask
        protectedSeqNums - the sequence numbers this mask should mark as protected
        Throws:
        FlexFec03Mask.MalformedMaskException - when the mask is invalid
    • Method Detail

      • lengthBytes

        public int lengthBytes()
        Get the length of the mask, in bytes
        Returns:
        the length of the mask, in bytes
      • getProtectedSeqNums

        public List<Integer> getProtectedSeqNums()
        Get the list of media packet sequence numbers which are marked as protected in this mask
        Returns:
        a list of sequence numbers of the media packets marked as protected by this mask