Package com.wowza.wms.dvr
Class DvrManifestEntry
Object
com.wowza.wms.dvr.DvrManifestEntry
- Direct Known Subclasses:
DvrManifestChunkEntry,DvrManifestCodecEntry,DvrManifestOnMetadataEntry,DvrManifestTimeMapEntry
Abstract class representing entry in DVR manifest.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected longstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected longprotected static final byteprotected intprotected long -
Constructor Summary
ConstructorsConstructorDescriptionDvrManifestEntry(int type, long index, long dvrStart, long dvrStop, long packetTime, long utcTime) Constructor Valid types include:IVHost.CONTENTTYPE_AUDIO,IVHost.CONTENTTYPE_VIDEO,IVHost.CONTENTTYPE_DATA,IDvrManifest.ON_METADATA_TYPE,IDvrManifest.CODEC_TYPE, orIDvrManifest.TIME_MAP_TYPE -
Method Summary
Modifier and TypeMethodDescriptionprotected StringencodeBytes(byte[] bytes) Encode string of bytes as Base64.protected StringlongGet durationlonggetIndex()Get manifest index.abstract StringGet textual representation of record for textual manifest usage.longGet chunk start timecode in packetTime units.longGet start timecode.longGet stop timecode.intgetType()Get type of manifest record.longGet chunk start timecode in UTC units.longbyte[]Serialize manifest record.abstract voidSerialize manifest record.
-
Field Details
-
MANIFESTFILE_KEY_INDEX
- See Also:
-
MANIFESTFILE_KEY_TYPE
- See Also:
-
MANIFESTFILE_KEY_START
- See Also:
-
MANIFESTFILE_KEY_STOP
- See Also:
-
MANIFESTFILE_KEY_SIZE
- See Also:
-
MANIFESTFILE_KEY_ARTIFACT
- See Also:
-
MANIFESTFILE_KEY_DVRTIME
- See Also:
-
MANIFESTFILE_KEY_CHUNKINDEX
- See Also:
-
MANIFESTFILE_KEY_PACKETTIME
- See Also:
-
MANIFESTFILE_KEY_UTCTIME
- See Also:
-
MANIFESTFILE_KEY_NAME
- See Also:
-
MANIFESTFILE_KEY_AUDIO_CODEC
- See Also:
-
MANIFESTFILE_KEY_VIDEO_CODEC
- See Also:
-
MANIFESTFILE_KEY_ENCRYPTIONS
- See Also:
-
MANIFESTFILE_KEY_METADATA
- See Also:
-
SERIALIZE_CURRENT_VERSION
protected static final byte SERIALIZE_CURRENT_VERSION- See Also:
-
dvrStart
protected long dvrStart -
dvrStop
protected long dvrStop -
packetTime
protected long packetTime -
utcTime
protected long utcTime -
index
protected long index -
type
protected int type
-
-
Constructor Details
-
DvrManifestEntry
public DvrManifestEntry(int type, long index, long dvrStart, long dvrStop, long packetTime, long utcTime) Constructor Valid types include:IVHost.CONTENTTYPE_AUDIO,IVHost.CONTENTTYPE_VIDEO,IVHost.CONTENTTYPE_DATA,IDvrManifest.ON_METADATA_TYPE,IDvrManifest.CODEC_TYPE, orIDvrManifest.TIME_MAP_TYPE- Parameters:
type- typeindex- manifest indexdvrStart- start time (ms in DVR time scale)dvrStop- stop time (ms in DVR time scale)packetTime-utcTime-
-
-
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()Get type of manifest record. Valid types include:IVHost.CONTENTTYPE_AUDIO,IVHost.CONTENTTYPE_VIDEO,IVHost.CONTENTTYPE_DATA,IDvrManifest.ON_METADATA_TYPE,IDvrManifest.CODEC_TYPE, orIDvrManifest.TIME_MAP_TYPE- Returns:
- type
-
getIndex
public long getIndex()Get manifest index.- Returns:
- index
-
getUTCStartTime
public long getUTCStartTime() -
serialize
Serialize manifest record.- Parameters:
out- output stream
-
serialize
public byte[] serialize()Serialize manifest record.- Returns:
- serialized data
-
getManifestRepresentation
Get textual representation of record for textual manifest usage.- Returns:
- textual representation of entry
-
getCommonInitialTextRepString
-
encodeBytes
Encode string of bytes as Base64. Provides check for null buffer or empty buffer.- Parameters:
bytes- buffer to encode.- Returns:
- Base64 encoding or "".
-