public interface ILiveStreamDvrRecorder
ILiveStreamDvrRecorder: DVR Recorder interface.
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
canRecordAudio() |
True if audio is being recorded
|
boolean |
canRecordData() |
True if data is being recorded
|
boolean |
canRecordVideo() |
True if video is being recorded
|
IMediaStream |
getAndSetStartStream(IMediaStream stream) |
|
IApplicationInstance |
getAppInstance() |
Get associated applicationInstance.
|
IDvrStreamManager |
getDvrManager() |
Get DVR recorder's associated DVR stream manager
|
int |
getDvrRecorderId() |
Get the DVR recorder id
|
com.wowza.wms.client.LicenseHolder |
getLicenseHolder() |
|
WMSProperties |
getProperties() |
Get properties
|
String |
getRecordingName() |
|
IMediaStream |
getStream() |
Get the current stream that is being recorded
|
void |
handlePacket(IMediaStream stream,
AMFPacket packet) |
Called to handle an incoming packet
|
void |
init(String streamName,
String recorderName,
IApplicationInstance appInstance,
com.wowza.wms.stream.livedvr.DvrRecorderItem dvrRecorderItem) |
Initialize DVR recorder.
|
boolean |
isActive() |
Is the DVR recorder active
|
boolean |
isRecording() |
Is this stream currently recording.
|
boolean |
isRecordingPaused() |
Is this stream currently paused from recording.
|
boolean |
pauseRecording() |
Request that stream recording pause.
|
void |
resetStream(IMediaStream stream) |
Called when something happens that forces the stream to reset
|
boolean |
resumeRecording() |
Request that stream recording resume.
|
void |
setDvrRecorderId(int liveStreamId) |
Set the DVR recorder id
|
void |
setRecordAudio(boolean recordAudio) |
Set to true to record audio
|
void |
setRecordData(boolean recordVideo) |
Set to true to record data
|
void |
setRecordingName(String name) |
|
void |
setRecordVideo(boolean recordVideo) |
Set to true to record video
|
void |
setStartRecordingOnStartup(boolean shouldStartRecordingOnStartup) |
Set recording behavior of DVR Manager on startup.
|
boolean |
shouldStartRecordingOnStartup() |
Should DVR start recording when packets start flowing.
|
void |
shutdown() |
Called to shutdown the DVR recorder
|
IDvrStreamManager |
startRecording() |
Request that stream recording start.
|
void |
startStream(IMediaStream stream) |
Called when the stream starts
|
boolean |
stopRecording() |
Request that stream recording stop.
|
void |
touch(long timecode) |
Touch the stream to keep it active
|
boolean canRecordAudio()
boolean canRecordData()
boolean canRecordVideo()
IMediaStream getAndSetStartStream(IMediaStream stream)
IApplicationInstance getAppInstance()
IDvrStreamManager getDvrManager()
int getDvrRecorderId()
com.wowza.wms.client.LicenseHolder getLicenseHolder()
WMSProperties getProperties()
String getRecordingName()
IMediaStream getStream()
void handlePacket(IMediaStream stream, AMFPacket packet)
stream - streampacket - packetvoid init(String streamName,
String recorderName,
IApplicationInstance appInstance,
com.wowza.wms.stream.livedvr.DvrRecorderItem dvrRecorderItem)
streamName - stream namerecorderName - DVR recorder nameappInstance - application instancedvrRecorderItem - DVR recorderboolean isActive()
boolean isRecording()
boolean isRecordingPaused()
boolean pauseRecording()
A successful pause will result in registered IDvrRecordingListeners to have their
IDvrRecordingListener.recordingPaused(IDvrStreamStore) method called.
void resetStream(IMediaStream stream)
stream - streamboolean resumeRecording()
A successful resume will result in registered IDvrRecordingListeners to have their
IDvrRecordingListener.recordingResumed(IDvrStreamStore) method called.
void setDvrRecorderId(int liveStreamId)
liveStreamId - void setRecordAudio(boolean recordAudio)
recordAudio - true to record audiovoid setRecordData(boolean recordVideo)
recordVideo - true to record datavoid setRecordingName(String name)
void setRecordVideo(boolean recordVideo)
recordVideo - true to record videovoid setStartRecordingOnStartup(boolean shouldStartRecordingOnStartup)
shouldStartRecordingOnStartup - should recording start when DVR manager starts.boolean shouldStartRecordingOnStartup()
void shutdown()
IDvrStreamManager startRecording()
void startStream(IMediaStream stream)
stream - streamboolean stopRecording()
A successful stop will result in registered IDvrRecordingListeners to have their
IDvrRecordingListener.recordingStopped(IDvrStreamStore) method called.
Success only occurs if the stream is already in the recording state IDvrStreamStore.isRecording().
void touch(long timecode)
timecode - timecode of touch in milliseconds