|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.stream.RecordingListener
public class RecordingListener
Stream listener for recording stream events to a file.
Constructor Summary | |
---|---|
RecordingListener()
|
Method Summary | |
---|---|
void |
closeStream()
|
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 |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordingListener()
Method Detail |
---|
public boolean init(IConnection conn, String name, boolean isAppend)
conn
- Stream source connectionname
- Stream nameisAppend
- Append mode
public void start()
public void packetReceived(IBroadcastStream stream, IStreamPacket packet)
IStreamListener
packetReceived
in interface IStreamListener
stream
- the stream the packet has been received forpacket
- the packet receivedpublic static File getRecordFile(IScope scope, String name)
scope
- name
-
public void closeStream()
public boolean isRecording()
public boolean isAppending()
public FileConsumer getFileConsumer()
public void setFileConsumer(FileConsumer recordingConsumer)
recordingConsumer
- the recordingConsumer to setpublic String getFileName()
public void setFileName(String fileName)
fileName
- the fileName to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |