Recorder.Listener| Modifier and Type | Field and Description |
|---|---|
static String[] |
SUPPORTED_FORMATS
The list of formats in which RecorderImpl instances support
recording media.
|
FORMAT, SAVED_CALLS_PATH| Constructor and Description |
|---|
RecorderImpl(AudioMixerMediaDevice device)
Constructs the RecorderImpl with the provided session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Recorder.Listener listener)
Adds a new Recorder.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 a existing Recorder.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.
|
public static final String[] SUPPORTED_FORMATS
public RecorderImpl(AudioMixerMediaDevice device)
device - device that can create a session that provides the output
data sourcepublic void addListener(Recorder.Listener listener)
addListener in interface Recorderlistener - the new Recorder.Listener to be added to the
list of listeners interested in notifications from this RecorderRecorder.addListener(Recorder.Listener)public List<String> getSupportedFormats()
getSupportedFormats in interface RecorderRecorder.getSupportedFormats()public void removeListener(Recorder.Listener listener)
removeListener in interface Recorderlistener - the existing Recorder.Listener to be removed
from the list of listeners interested in notifications from this
RecorderRecorder.removeListener(Recorder.Listener)public void start(String format, String filename) throws IOException, MediaException
start in interface Recorderformat - 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 RecorderRecorder.start(String, String)public void stop()
stop in interface RecorderRecorder.stop()public void setMute(boolean mute)
public String getFilename()
getFilename in interface Recorderpublic void setEventHandler(RecorderEventHandler eventHandler)
setEventHandler in interface RecordereventHandler - the RecorderEventHandler to set.public Synchronizer getSynchronizer()
getSynchronizer in interface Recorderpublic void setSynchronizer(Synchronizer synchronizer)
setSynchronizer in interface Recordersynchronizer - the Synchronizer to set.public MediaStream getMediaStream()
getMediaStream in interface RecorderCopyright © 2022 jitsi.org. All rights reserved.