public interface ILiveStreamRecordManagerActionNotify
Multiple Listener's can be registered for the LiveStreamRecordManager. The listeners are notified in the order in which they were added.
for API's to add and remove listeners| Modifier and Type | Method | Description |
|---|---|---|
void |
onCreateRecord(IStreamRecorder recorder) |
This notification occurs when a new recorder is created due to a call to one of the ILiveStreamRecordManager
startRecording API's.
|
void |
onSplitRecord(IStreamRecorder recorder) |
This notification occurs due to a call to the ILiveStreamRecordManager splitRecording API.
|
void |
onStartRecord(IStreamRecorder recorder) |
This notification occurs due to a call to one of the ILiveStreamRecordManager
startRecording API's.
|
void |
onStopRecord(IStreamRecorder recorder) |
This notification occurs due to a call to the ILiveStreamRecordManager stopRecording API.
|
void |
onSwitchRecord(IStreamRecorder recorder,
IMediaStream newStream) |
This notification occurs when an existing stream is replaced with a stream of the same name.
|
IStreamRecorder |
recordFactory(String streamName,
StreamRecorderParameters recordParams) |
This notification is the first one to occur when the ILiveStreamRecordManager is requested to start a recording via
any of the ILiveStreamRecordManager startRecording API's
It gives the listener the opportunity to return a custom class which implements the IStreamRecorder interface to handle the recording. If the listener returns null, the LiveStreamRecordManager will internally create an new StreamRecorder to handle the recording. |
void onCreateRecord(IStreamRecorder recorder)
Called after the recordFactory notification is called, but before LiveStreamRecordManager calls the recorders own createRecorder method.
recorder - The new recordervoid onSplitRecord(IStreamRecorder recorder)
Called before LiveStreamRecordManager calls the recorders own splitRecorder method.
recorder - The recorder for which the split has been requested.void onStartRecord(IStreamRecorder recorder)
Called after the onCreateRecord notification is called, but before LiveStreamRecordManager calls the recorders own startRecorder method.
recorder - The recorder which is startingvoid onStopRecord(IStreamRecorder recorder)
Called before LiveStreamRecordManager calls the recorders own stopRecorder method.
recorder - The recorder for which a stop has been requested.void onSwitchRecord(IStreamRecorder recorder, IMediaStream newStream)
Called before LiveStreamRecordManager calls the recorders own switchRecorder method.
recorder - The recorder for the existing streamnewStream - The new IMediaStream associated with the existing stream nameIStreamRecorder recordFactory(String streamName, StreamRecorderParameters recordParams)
Called before LiveStreamRecordManager internal action is taken
recordParams - the parameters passed into IStreamRecordManager startRecording APIstreamName - the stream name passed into IStreamRecordManager startRecording API