public interface IRecordingListener extends IStreamListener
| Modifier and Type | Method and Description |
|---|---|
FileConsumer |
getFileConsumer() |
String |
getFileName() |
boolean |
init(IConnection conn,
String name,
boolean isAppend)
Initialize the listener.
|
boolean |
init(IScope scope,
String name,
boolean isAppend)
Initialize the listener.
|
boolean |
isAppending() |
boolean |
isRecording() |
void |
packetReceived(IBroadcastStream stream,
IStreamPacket packet)
A packet has been received from a stream.
|
void |
setFileConsumer(FileConsumer recordingConsumer) |
void |
setFileName(String fileName) |
void |
start()
Start the recording.
|
void |
stop()
Stop the recording.
|
boolean init(IConnection conn, String name, boolean isAppend)
conn - Stream source connectionname - Stream nameisAppend - Append modeboolean init(IScope scope, String name, boolean isAppend)
scope - Stream source scopename - Stream nameisAppend - Append modevoid start()
void stop()
void packetReceived(IBroadcastStream stream, IStreamPacket packet)
packetReceived in interface IStreamListenerstream - the stream the packet has been received forpacket - the packet receivedboolean isRecording()
boolean isAppending()
FileConsumer getFileConsumer()
void setFileConsumer(FileConsumer recordingConsumer)
recordingConsumer - the recordingConsumer to setString getFileName()
void setFileName(String fileName)
fileName - the fileName to setCopyright © 2005–2017 Red5. All rights reserved.