Class DvrManifestEntry

Object
com.wowza.wms.dvr.DvrManifestEntry
Direct Known Subclasses:
DvrManifestChunkEntry, DvrManifestCodecEntry, DvrManifestOnMetadataEntry, DvrManifestTimeMapEntry

public abstract class DvrManifestEntry extends Object
Abstract class representing entry in DVR manifest.
  • Field Details

  • Constructor Details

  • Method Details

    • 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
    • getType

      public int getType()
      Returns:
      type
    • getIndex

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

      public long getUTCStartTime()
    • serialize

      public abstract void serialize(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 "".