public interface ILiveStreamRecordManager
| Modifier and Type | Method | Description |
|---|---|---|
ILiveStreamRecordManagerActionNotify |
addListener(ILiveStreamRecordManagerActionNotify listener) |
Used to add a listener to receive ILiveStreamRecordManagerActionNotify events from the LiveStreamRecordManager.
|
IStreamRecorder |
getRecorder(IApplicationInstance appInstance,
String streamName) |
Used to get a specific IStreamRecorder from the LiveStreamRecordManager
Modifying the returned IStreamRecorder while a recording is active may result in undefined behavior.
|
java.util.List<IStreamRecorder> |
getRecordersList(IApplicationInstance appInstance) |
Used to get the list of IStreamRecorders for a specific application instance.
|
java.util.Map<String,IStreamRecorder> |
getRecordersMap(IApplicationInstance appInstance) |
Used to get the Map of stream Name to IStreamRecorder for a specific application instance.
|
void |
init(IVHost vhost) |
Called by vhost init to intialize the LiveStreamRecordManager
|
boolean |
removeListener(ILiveStreamRecordManagerActionNotify listener) |
Used to remove an ILiveStreamRecordManagerActionNotify listener from the LiveStreamRecordManager.
|
void |
splitRecording(IApplicationInstance appInstance,
String streamName) |
Used to tell the LiveStreamRecordManager to split (a.k.a segment) a recording immediately for a specific stream in a specific application instance.
|
void |
startRecording(IApplicationInstance appInstance,
StreamRecorderParameters params) |
Used to tell the LiveStreamRecordManager to create StreamRecorders for all streams which are published to the specified application instance.
|
void |
startRecording(IApplicationInstance appInstance,
String streamName,
StreamRecorderParameters params) |
Used to tell the LiveStreamRecordManager to create a StreamRecorder for a specific stream in a specific application instance.
|
void |
stopRecording(IApplicationInstance appInstance) |
Used to tell the LiveStreamRecordManager to stop all StreamRecorders on a specific application instance.
|
void |
stopRecording(IApplicationInstance appInstance,
String streamName) |
Used to tell the LiveStreamRecordManager to stop a StreamRecorder for a specific stream in a specific application instance.
|
ILiveStreamRecordManagerActionNotify addListener(ILiveStreamRecordManagerActionNotify listener)
listener - An instance of a class which implements the ILiveStreamRecordManagerActionNotify interfaceILiveStreamRecordManagerActionNotifyIStreamRecorder getRecorder(IApplicationInstance appInstance, String streamName)
appInstance - The application instance associated with the desired IStreamRecorderstreamName - The stream name associated with the desired IStreamRecorderjava.util.List<IStreamRecorder> getRecordersList(IApplicationInstance appInstance)
appInstance - The application instance associated with the desired IStreamRecorder Listjava.util.Map<String,IStreamRecorder> getRecordersMap(IApplicationInstance appInstance)
appInstance - The application instance associated with the desired IStreamRecorder Listvoid init(IVHost vhost)
vhost - The vhost to associated with the instance of LiveStreamRecordManagerboolean removeListener(ILiveStreamRecordManagerActionNotify listener)
listener - The listener passed into the addListener method.void splitRecording(IApplicationInstance appInstance, String streamName)
appInstance - The application instance of the StreamRecorder to splitstreamName - The stream name associated with the StreamRecorder to splitvoid startRecording(IApplicationInstance appInstance, StreamRecorderParameters params)
appInstance - The application instance on which to record all incoming streamsparams - The StreamRecorderParameters to use for all recordersStreamRecorderParameters,
IStreamRecorderConstantsvoid startRecording(IApplicationInstance appInstance, String streamName, StreamRecorderParameters params)
appInstance - The application instance on which to record the requested streamstreamName - The stream name associated with the incoming stream to recordparams - The StreamRecorderParameters to use for the StreamRecorderStreamRecorderParameters,
IStreamRecorderConstantsvoid stopRecording(IApplicationInstance appInstance)
appInstance - The application instance on which to stop all StreamRecordersvoid stopRecording(IApplicationInstance appInstance, String streamName)
appInstance - The application instance of the StreamRecorder to stopstreamName - The stream name associated with the StreamRecorder to stop