Class DvrManifestEntry

    • Field Detail

      • MANIFESTFILE_KEY_INDEX

        public static final String MANIFESTFILE_KEY_INDEX
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_TYPE

        public static final String MANIFESTFILE_KEY_TYPE
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_START

        public static final String MANIFESTFILE_KEY_START
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_STOP

        public static final String MANIFESTFILE_KEY_STOP
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_SIZE

        public static final String MANIFESTFILE_KEY_SIZE
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_ARTIFACT

        public static final String MANIFESTFILE_KEY_ARTIFACT
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_DVRTIME

        public static final String MANIFESTFILE_KEY_DVRTIME
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_CHUNKINDEX

        public static final String MANIFESTFILE_KEY_CHUNKINDEX
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_PACKETTIME

        public static final String MANIFESTFILE_KEY_PACKETTIME
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_UTCTIME

        public static final String MANIFESTFILE_KEY_UTCTIME
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_NAME

        public static final String MANIFESTFILE_KEY_NAME
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_AUDIO_CODEC

        public static final String MANIFESTFILE_KEY_AUDIO_CODEC
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_VIDEO_CODEC

        public static final String MANIFESTFILE_KEY_VIDEO_CODEC
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_ENCRYPTIONS

        public static final String MANIFESTFILE_KEY_ENCRYPTIONS
        See Also:
        Constant Field Values
      • MANIFESTFILE_KEY_METADATA

        public static final String MANIFESTFILE_KEY_METADATA
        See Also:
        Constant Field Values
      • SERIALIZE_CURRENT_VERSION

        protected static final byte SERIALIZE_CURRENT_VERSION
        See Also:
        Constant Field Values
      • dvrStart

        protected long dvrStart
      • dvrStop

        protected long dvrStop
      • packetTime

        protected long packetTime
      • utcTime

        protected long utcTime
      • index

        protected long index
      • type

        protected int type
    • Method Detail

      • getStartTimecode

        public long getStartTimecode()
        Get start timecode. In milliseconds, DVR time base.
        Returns:
        start time
      • getStopTimecode

        public long getStopTimecode()
        Get stop timecode. In milliseconds, DVR time base.
        Returns:
        stop time
      • getPacketStartTime

        public long getPacketStartTime()
        Get chunk start timecode in packetTime units. In milliseconds.
        Returns:
        packet start time
      • getUtcStartTime

        public long getUtcStartTime()
        Get chunk start timecode in UTC units. In milliseconds.
        Returns:
        UTC start time
      • getDuration

        public long getDuration()
        Get duration
        Returns:
        duration in ms
      • getIndex

        public long getIndex()
        Get manifest index.
        Returns:
        index
      • getUTCStartTime

        public long getUTCStartTime()
      • serialize

        public abstract void serialize​(java.io.DataOutputStream out)
        Serialize manifest record.
        Parameters:
        out - output stream
      • serialize

        public byte[] serialize()
        Serialize manifest record.
        Returns:
        serialized data
      • getManifestRepresentation

        public abstract String getManifestRepresentation()
        Get textual representation of record for textual manifest usage.
        Returns:
        textual representation of entry
      • getCommonInitialTextRepString

        protected String getCommonInitialTextRepString()
      • encodeBytes

        protected String encodeBytes​(byte[] bytes)
        Encode string of bytes as Base64. Provides check for null buffer or empty buffer.
        Parameters:
        bytes - buffer to encode.
        Returns:
        Base64 encoding or "".