public interface IDvrStreamStore
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDvrChunkListener(IDvrStoreChunkListener listener) |
Add (very fine) listener for chunk events.
|
void |
addManifestEntries(java.util.List<DvrManifestEntry> entries) |
|
boolean |
canPlay() |
Is this store capable of playing.
|
boolean |
canRecord() |
Is this store capable of recording.
|
IApplicationInstance |
getAppInstance() |
Get associated application instance.
|
IDvrChunker |
getChunker() |
|
long |
getClosestStartTime(int type,
long t) |
|
String |
getContextStr() |
Get stream context string, useful for logging.
|
com.wowza.wms.dvr.DvrChunk |
getDvrChunkAtTime(int fragmentType,
long t) |
|
com.wowza.wms.dvr.DvrChunk |
getDvrChunkByIndex(int fragmentType,
long index) |
|
com.wowza.wms.dvr.DvrChunk |
getDvrChunkNearTime(int fragmentType,
long t,
long delta) |
|
IDvrStreamManager |
getDvrManager() |
Get DVR Stream Manager
|
int |
getDvrStorageWindowSeconds() |
Get DVR window size.
|
com.wowza.wms.dvr.io.IDvrFileSystem |
getFileSystem() |
|
IDvrManifest |
getManifest() |
Get manifest
|
WMSProperties |
getProperties() |
Get stream store properties.
|
IDvrPurgeController |
getPurgeController() |
Get purge controller for stream store.
|
java.util.List<DvrManifestEntry> |
getRecordedEntriesWithLimit(int fragmentType,
long t,
int limit) |
|
DvrManifestEntry |
getRecordedEntryByIndex(int fragmentType,
long index) |
|
DvrManifestEntry |
getRecordedEntryByTime(int fragmentType,
long t) |
|
String |
getStreamName() |
Get versioned stream name.
|
com.wowza.wms.dvr.DvrTimeMapper |
getTimeMapper() |
Get time mapper, which maps between DVR, real and packet time.
|
boolean |
hasAudio() |
Does this store have audio.
|
boolean |
hasData() |
Does this store have data.
|
boolean |
hasEncryption() |
Does this store contain encryption information
|
boolean |
hasOnMetadata() |
Does this store have on metadata.
|
boolean |
hasVideo() |
Does this store have video.
|
void |
init() |
Initialize DVR stream store.
|
boolean |
isLive() |
Is store currently live
For an origin,
isRecording() and isLive() will typically return the same result. |
boolean |
isLoaded() |
|
boolean |
isRecording() |
Is store currently recording.
|
boolean |
isRecordingPaused() |
Is store currently paused while recording.
|
boolean |
pauseRecording() |
Request that stream recording pause.
|
void |
purgeEntries(DvrManifestEntryRangeGroup rangeGroup) |
Purge entries from store
|
void |
removeDvrChunkListener(IDvrStoreChunkListener listener) |
Remove (very fine) listener for chunk events.
|
void |
reset() |
|
boolean |
resumeRecording() |
Request that stream recording resume.
|
void |
setCanPlay(boolean canPlay) |
Set the Stream Stores ability to play.
|
void |
setCanRecord(boolean canRecord) |
Set the Stream Stores ability to record.
|
void |
setHasEncryption(boolean hasEncryption) |
Set whether the store has encryption.
|
void |
setReadCacheEnable(boolean enable) |
Set the state of the read cache
|
void |
shutdown() |
|
void |
shutdownReadCache() |
Shutdown the read cache, this should get called when the store shuts down.
|
boolean |
startRecording() |
Request that recording start.
|
boolean |
stopRecording() |
Request that stream recording stop.
|
com.wowza.wms.dvr.DvrChunkStorageInfo |
storeChunks(int vDuration,
com.wowza.wms.dvr.DvrPacketHolder vPackets,
int aDuration,
com.wowza.wms.dvr.DvrPacketHolder aPackets,
int dDuration,
com.wowza.wms.dvr.DvrPacketHolder dPackets) |
|
boolean |
storeOnMetadata(long pt,
long utc,
AMFPacket metaPacket) |
void addDvrChunkListener(IDvrStoreChunkListener listener)
listener - listenervoid addManifestEntries(java.util.List<DvrManifestEntry> entries)
boolean canPlay()
boolean canRecord()
IApplicationInstance getAppInstance()
IDvrChunker getChunker()
long getClosestStartTime(int type,
long t)
String getContextStr()
com.wowza.wms.dvr.DvrChunk getDvrChunkAtTime(int fragmentType,
long t)
com.wowza.wms.dvr.DvrChunk getDvrChunkByIndex(int fragmentType,
long index)
com.wowza.wms.dvr.DvrChunk getDvrChunkNearTime(int fragmentType,
long t,
long delta)
IDvrStreamManager getDvrManager()
int getDvrStorageWindowSeconds()
IDvrConstants.PROPERTY_WINDOW_DURATION after the
store is created and before it is initialized
by using the IDvrStoreListener.dvrStreamStoreCreate(IDvrStreamStore)com.wowza.wms.dvr.io.IDvrFileSystem getFileSystem()
IDvrManifest getManifest()
WMSProperties getProperties()
IDvrPurgeController getPurgeController()
java.util.List<DvrManifestEntry> getRecordedEntriesWithLimit(int fragmentType, long t, int limit)
DvrManifestEntry getRecordedEntryByIndex(int fragmentType, long index)
DvrManifestEntry getRecordedEntryByTime(int fragmentType, long t)
String getStreamName()
com.wowza.wms.dvr.DvrTimeMapper getTimeMapper()
boolean hasAudio()
boolean hasData()
boolean hasEncryption()
boolean hasOnMetadata()
boolean hasVideo()
void init()
boolean isLive()
isRecording() and isLive() will typically return the same result.
On an edge, isRecording() will always be false. But isLive() will reflect the status of the repeated stream.boolean isLoaded()
boolean isRecording()
boolean isRecordingPaused()
boolean pauseRecording()
Used internally. Clients should call ILiveStreamDvrRecorder.pauseRecording().
Success occurs if the stream is not already paused.
void purgeEntries(DvrManifestEntryRangeGroup rangeGroup)
rangeGroup - s set of ranges for purgingvoid removeDvrChunkListener(IDvrStoreChunkListener listener)
listener - listenervoid reset()
boolean resumeRecording()
Used internally. Clients should call ILiveStreamDvrRecorder.resumeRecording().
Success occurs if the stream was previously paused.
void setCanPlay(boolean canPlay)
Note: Must be called when stream is not playing.
canPlay - void setCanRecord(boolean canRecord)
Note: Must be called when stream is not recording.
canRecord - void setHasEncryption(boolean hasEncryption)
Note: Must be called when stream is not playing.
hasEncryption - if store has encryptionvoid setReadCacheEnable(boolean enable)
enable - void shutdown()
void shutdownReadCache()
boolean startRecording()
Used internally. Clients should call ILiveStreamDvrRecorder.startRecording().
Success occurs if the stream canRecord canRecord() and the stream is
not already in the recording state isRecording().
boolean stopRecording()
Used internally. Clients should call ILiveStreamDvrRecorder.stopRecording().
Success only occurs if the stream is already in the recording state isRecording().
com.wowza.wms.dvr.DvrChunkStorageInfo storeChunks(int vDuration,
com.wowza.wms.dvr.DvrPacketHolder vPackets,
int aDuration,
com.wowza.wms.dvr.DvrPacketHolder aPackets,
int dDuration,
com.wowza.wms.dvr.DvrPacketHolder dPackets)
boolean storeOnMetadata(long pt,
long utc,
AMFPacket metaPacket)