public interface IStreamRecorderActionNotify
Multiple Listener's can be registered for each StreamRecorder. 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 |
onCreateRecorder(IStreamRecorder recorder) |
This notification occurs when a new recorder has been created, but before recording has started.
|
void |
onSegmentEnd(IStreamRecorder recorder) |
This notification occurs when a recorder stops writing to the current file
|
void |
onSegmentStart(IStreamRecorder recorder) |
This notification occurs when a recorder starts writing to the current file
|
void |
onSplitRecorder(IStreamRecorder recorder) |
This notification occurs when a recorder is directed to split the active recording.
|
void |
onStartRecorder(IStreamRecorder recorder) |
This notification occurs when a recorder starts recording.
|
void |
onStopRecorder(IStreamRecorder recorder) |
This notification occurs when a recorder stops recording.
|
void |
onSwitchRecorder(IStreamRecorder recorder,
IMediaStream newStream) |
This notification occurs when an existing stream has been replaced by a new stream of the same name.
|
void onCreateRecorder(IStreamRecorder recorder)
Called before action is taken
recorder - the new recordervoid onSegmentEnd(IStreamRecorder recorder)
Called after all packets have been written tot he file and the file has been closed.
recorder - the recorder which is wrote the segmentvoid onSegmentStart(IStreamRecorder recorder)
Called after a the file has been opened for writing, but before any data is written to the file.
recorder - the recorder which is writing the segmentvoid onSplitRecorder(IStreamRecorder recorder)
Called after all configuration of the recorder is complete, but before the recording actually starts.
recorder - the recorder which is startingvoid onStartRecorder(IStreamRecorder recorder)
Called after all configuration of the recorder is complete, but before the recording actually starts.
recorder - the recorder which is startingvoid onStopRecorder(IStreamRecorder recorder)
Called after the recorder is stopped.
recorder - the recorder which is startingvoid onSwitchRecorder(IStreamRecorder recorder, IMediaStream newStream)
Called before any action is taken
recorder - the current recorder for existing streamnewStream - the new stream which will be recorded