public class RecordingListener extends Object implements IRecordingListener
| Constructor and Description |
|---|
RecordingListener() |
| Modifier and Type | Method and Description |
|---|---|
FileConsumer |
getFileConsumer() |
String |
getFileName() |
static File |
getRecordFile(IScope scope,
String name)
Get the file we'd be recording to based on scope and given name.
|
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.
|
public static File getRecordFile(IScope scope, String name)
scope - scopename - namepublic boolean init(IConnection conn, String name, boolean isAppend)
init in interface IRecordingListenerconn - Stream source connectionname - Stream nameisAppend - Append modepublic boolean init(IScope scope, String name, boolean isAppend)
init in interface IRecordingListenerscope - Stream source scopename - Stream nameisAppend - Append modepublic void start()
start in interface IRecordingListenerpublic void stop()
stop in interface IRecordingListenerpublic void packetReceived(IBroadcastStream stream, IStreamPacket packet)
packetReceived in interface IStreamListenerpacketReceived in interface IRecordingListenerstream - the stream the packet has been received forpacket - the packet receivedpublic boolean isRecording()
isRecording in interface IRecordingListenerpublic boolean isAppending()
isAppending in interface IRecordingListenerpublic FileConsumer getFileConsumer()
getFileConsumer in interface IRecordingListenerpublic void setFileConsumer(FileConsumer recordingConsumer)
setFileConsumer in interface IRecordingListenerrecordingConsumer - the recordingConsumer to setpublic String getFileName()
getFileName in interface IRecordingListenerpublic void setFileName(String fileName)
setFileName in interface IRecordingListenerfileName - the fileName to setCopyright © 2005–2017 Red5. All rights reserved.