Package com.wowza.wms.stream.livedvr
Interface ILiveStreamDvrRecorder
- 
 public interface ILiveStreamDvrRecorderILiveStreamDvrRecorder: DVR Recorder interface. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRecordAudio()True if audio is being recordedbooleancanRecordData()True if data is being recordedbooleancanRecordVideo()True if video is being recordedIMediaStreamgetAndSetStartStream(IMediaStream stream)IApplicationInstancegetAppInstance()Get associated applicationInstance.IDvrStreamManagergetDvrManager()Get DVR recorder's associated DVR stream managerintgetDvrRecorderId()Get the DVR recorder idcom.wowza.wms.client.LicenseHoldergetLicenseHolder()WMSPropertiesgetProperties()Get propertiesStringgetRecordingName()IMediaStreamgetStream()Get the current stream that is being recordedvoidhandlePacket(IMediaStream stream, AMFPacket packet)Called to handle an incoming packetvoidinit(String streamName, String recorderName, IApplicationInstance appInstance, com.wowza.wms.stream.livedvr.DvrRecorderItem dvrRecorderItem)Initialize DVR recorder.booleanisActive()Is the DVR recorder activebooleanisRecording()Is this stream currently recording.booleanisRecordingPaused()Is this stream currently paused from recording.booleanpauseRecording()Request that stream recording pause.voidresetStream(IMediaStream stream)Called when something happens that forces the stream to resetbooleanresumeRecording()Request that stream recording resume.voidsetDvrRecorderId(int liveStreamId)Set the DVR recorder idvoidsetRecordAudio(boolean recordAudio)Set to true to record audiovoidsetRecordData(boolean recordVideo)Set to true to record datavoidsetRecordingName(String name)voidsetRecordVideo(boolean recordVideo)Set to true to record videovoidsetStartRecordingOnStartup(boolean shouldStartRecordingOnStartup)Set recording behavior of DVR Manager on startup.booleanshouldStartRecordingOnStartup()Should DVR start recording when packets start flowing.voidshutdown()Called to shutdown the DVR recorderIDvrStreamManagerstartRecording()Request that stream recording start.voidstartStream(IMediaStream stream)Called when the stream startsbooleanstopRecording()Request that stream recording stop.voidtouch(long timecode)Touch the stream to keep it active
 
- 
- 
- 
Method Detail- 
initvoid init(String streamName, String recorderName, IApplicationInstance appInstance, com.wowza.wms.stream.livedvr.DvrRecorderItem dvrRecorderItem)Initialize DVR recorder.- Parameters:
- streamName- stream name
- recorderName- DVR recorder name
- appInstance- application instance
- dvrRecorderItem- DVR recorder
 
 - 
shutdownvoid shutdown() Called to shutdown the DVR recorder
 - 
getStreamIMediaStream getStream() Get the current stream that is being recorded- Returns:
- stream
 
 - 
getAppInstanceIApplicationInstance getAppInstance() Get associated applicationInstance.- Returns:
- application Instance
 
 - 
handlePacketvoid handlePacket(IMediaStream stream, AMFPacket packet) Called to handle an incoming packet- Parameters:
- stream- stream
- packet- packet
 
 - 
startStreamvoid startStream(IMediaStream stream) Called when the stream starts- Parameters:
- stream- stream
 
 - 
resetStreamvoid resetStream(IMediaStream stream) Called when something happens that forces the stream to reset- Parameters:
- stream- stream
 
 - 
touchvoid touch(long timecode) Touch the stream to keep it active- Parameters:
- timecode- timecode of touch in milliseconds
 
 - 
isActiveboolean isActive() Is the DVR recorder active- Returns:
- true if active
 
 - 
getPropertiesWMSProperties getProperties() Get properties- Returns:
- properties
 
 - 
getDvrRecorderIdint getDvrRecorderId() Get the DVR recorder id- Returns:
- DVR recorder id
 
 - 
setDvrRecorderIdvoid setDvrRecorderId(int liveStreamId) Set the DVR recorder id- Parameters:
- liveStreamId-
 
 - 
getDvrManagerIDvrStreamManager getDvrManager() Get DVR recorder's associated DVR stream manager- Returns:
- DVR manager
 
 - 
canRecordAudioboolean canRecordAudio() True if audio is being recorded- Returns:
- True if audio is being recorded
 
 - 
setRecordAudiovoid setRecordAudio(boolean recordAudio) Set to true to record audio- Parameters:
- recordAudio- true to record audio
 
 - 
canRecordVideoboolean canRecordVideo() True if video is being recorded- Returns:
- True if video is being recorded
 
 - 
setRecordVideovoid setRecordVideo(boolean recordVideo) Set to true to record video- Parameters:
- recordVideo- true to record video
 
 - 
canRecordDataboolean canRecordData() True if data is being recorded- Returns:
- True if data is being recorded
 
 - 
setRecordDatavoid setRecordData(boolean recordVideo) Set to true to record data- Parameters:
- recordVideo- true to record data
 
 - 
startRecordingIDvrStreamManager startRecording() Request that stream recording start.- Returns:
- stream manager if successful. null otherwise.
 
 - 
isRecordingboolean isRecording() Is this stream currently recording. If this stream is not recordable, the method returns false.- Returns:
- true if has a recording stream and it is recording.
 
 - 
isRecordingPausedboolean isRecordingPaused() Is this stream currently paused from recording. If this stream is not recording and not paused, the method returns false.- Returns:
- true if has a recording is paused.
 
 - 
stopRecordingboolean stopRecording() Request that stream recording stop. Note that this call places the DVR stream in the not recording state.A successful stop will result in registered IDvrRecordingListeners to have theirIDvrRecordingListener.recordingStopped(IDvrStreamStore)method called.Success only occurs if the stream is already in the recording state IDvrStreamStore.isRecording().- Returns:
- store if successful. null otherwise.
 
 - 
pauseRecordingboolean pauseRecording() Request that stream recording pause. The stream does not have to be actively recording to be paused. For example, it could be paused before packets start flowing.A successful pause will result in registered IDvrRecordingListeners to have theirIDvrRecordingListener.recordingPaused(IDvrStreamStore)method called.- Returns:
- store if successful. null otherwise.
 
 - 
resumeRecordingboolean resumeRecording() Request that stream recording resume. The stream does not have to be actively recording to be resumed. For example, it could have been paused before the stream started, and this call would move it out of the paused state.A successful resume will result in registered IDvrRecordingListeners to have theirIDvrRecordingListener.recordingResumed(IDvrStreamStore)method called.- Returns:
- store if successful. null otherwise.
 
 - 
setRecordingNamevoid setRecordingName(String name) 
 - 
getRecordingNameString getRecordingName() 
 - 
shouldStartRecordingOnStartupboolean shouldStartRecordingOnStartup() Should DVR start recording when packets start flowing.- Returns:
- true if should start recording initially, false otherwise
 
 - 
setStartRecordingOnStartupvoid setStartRecordingOnStartup(boolean shouldStartRecordingOnStartup) Set recording behavior of DVR Manager on startup.- Parameters:
- shouldStartRecordingOnStartup- should recording start when DVR manager starts.
 
 - 
getLicenseHoldercom.wowza.wms.client.LicenseHolder getLicenseHolder() 
 - 
getAndSetStartStreamIMediaStream getAndSetStartStream(IMediaStream stream) 
 
- 
 
-