public interface Recorder
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Recorder.Listener
Represents a listener interested in notifications from a Recorder.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT
The name of the configuration property the value of which specifies the
format in which media is to be recorded by Recorder (e.g.
|
static String |
SAVED_CALLS_PATH
The name of the configuration property the value of which specifies the
full path to the directory with media recorded by Recorder (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Recorder.Listener listener)
Adds a new Listener to the list of listeners interested in
notifications from this Recorder.
|
String |
getFilename()
Returns the filename we are last started or stopped recording to,
null if not started.
|
MediaStream |
getMediaStream()
Gets the MediaStream associated with this Recorder.
|
List<String> |
getSupportedFormats()
Gets a list of the formats in which this Recorder supports
recording media.
|
Synchronizer |
getSynchronizer()
Gets the Synchronizer of this Recorder.
|
void |
removeListener(Recorder.Listener listener)
Removes an existing Listener from the list of listeners
interested in notifications from this Recorder.
|
void |
setEventHandler(RecorderEventHandler eventHandler)
Sets the RecorderEventHandler which this Recorder
should notify when events related to recording (such as start/end of a
recording) occur.
|
void |
setMute(boolean mute)
Put the recorder in mute state.
|
void |
setSynchronizer(Synchronizer synchronizer)
Sets the Synchronizer that this instance should use.
|
void |
start(String format,
String filename)
Starts the recording of the media associated with this Recorder
(e.g.
|
void |
stop()
Stops the recording of the media associated with this Recorder
(e.g.
|
static final String SAVED_CALLS_PATH
static final String FORMAT
void addListener(Recorder.Listener listener)
listener - the new Listener to be added to the list of
listeners interested in notifications from this RecorderList<String> getSupportedFormats()
void removeListener(Recorder.Listener listener)
listener - the existing Listener to be removed from the
list of listeners interested in notifications from this Recordervoid start(String format, String filename) throws IOException, MediaException
format - the format into which the media associated with this
Recorder is to be recorded into the specified filefilename - the name of the file into which the media associated with
this Recorder is to be recordedIOException - if anything goes wrong with the input and/or output
performed by this RecorderMediaException - if anything else goes wrong while starting the
recording of media performed by this Recordervoid stop()
void setMute(boolean mute)
mute - the new value of the mute propertyString getFilename()
void setEventHandler(RecorderEventHandler eventHandler)
eventHandler - the RecorderEventHandler to set.Synchronizer getSynchronizer()
void setSynchronizer(Synchronizer synchronizer)
synchronizer - the Synchronizer to set.MediaStream getMediaStream()
Copyright © 2021 jitsi.org. All rights reserved.