Package org.red5.server.stream
Interface IRecordingListener
- All Superinterfaces:
IStreamListener
- All Known Implementing Classes:
RecordingListener
Recording listener interface.
- Author:
- Paul Gregoire (mondain@gmail.com)
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninit(IConnection conn, String name, boolean isAppend) Initialize the listener.booleanInitialize the listener.booleanbooleanvoidpacketReceived(IBroadcastStream stream, IStreamPacket packet) A packet has been received from a stream.voidsetFileConsumer(FileConsumer recordingConsumer) voidsetFileName(String fileName) voidstart()Start the recording.voidstop()Stop the recording.
-
Method Details
-
init
Initialize the listener.- Parameters:
conn- Stream source connectionname- Stream nameisAppend- Append mode- Returns:
- true if initialization completes and false otherwise
-
init
Initialize the listener.- Parameters:
scope- Stream source scopename- Stream nameisAppend- Append mode- Returns:
- true if initialization completes and false otherwise
-
start
void start()Start the recording. -
stop
void stop()Stop the recording. -
packetReceived
A packet has been received from a stream.- Specified by:
packetReceivedin interfaceIStreamListener- Parameters:
stream- the stream the packet has been received forpacket- the packet received
-
isRecording
boolean isRecording()- Returns:
- recording state, true if recording and false otherwise
-
isAppending
boolean isAppending()- Returns:
- appending state, true if appending and false otherwise
-
getFileConsumer
FileConsumer getFileConsumer()- Returns:
- the recordingConsumer
-
setFileConsumer
- Parameters:
recordingConsumer- the recordingConsumer to set
-
getFileName
String getFileName()- Returns:
- the fileName
-
setFileName
- Parameters:
fileName- the fileName to set
-