public class RecorderRtpImpl extends Object implements Recorder, javax.media.rtp.ReceiveStreamListener, org.jitsi.utils.dsi.ActiveSpeakerChangedListener<Long>, javax.media.ControllerListener
Recorder.ListenerFORMAT, SAVED_CALLS_PATH| Constructor and Description |
|---|
RecorderRtpImpl(RTPTranslator translator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activeSpeakerChanged(Long ssrc)
Implements
ActiveSpeakerChangedListener.activeSpeakerChanged(Object). |
void |
addListener(Recorder.Listener listener)
Implements
Recorder.addListener(Recorder.Listener). |
void |
connect(Recorder recorder) |
void |
controllerUpdate(javax.media.ControllerEvent ev)
Implements
ControllerListener.controllerUpdate(ControllerEvent). |
String |
getFilename()
Implements
Recorder.getFilename(). |
MediaStream |
getMediaStream()
Gets the MediaStream associated with this Recorder.
|
List<String> |
getSupportedFormats()
Implements
Recorder.getSupportedFormats(). |
SynchronizerImpl |
getSynchronizer()
Gets the Synchronizer of this Recorder.
|
void |
removeListener(Recorder.Listener listener)
Implements
Recorder.removeListener(Recorder.Listener). |
void |
setEventHandler(RecorderEventHandler eventHandler)
Sets the instance which should be notified when events related to
recordings (such as the start or end of a recording) occur.
|
void |
setMute(boolean mute)
Implements
Recorder.setMute(boolean). |
void |
setSynchronizer(Synchronizer synchronizer)
Sets the Synchronizer that this instance should use.
|
void |
start(String format,
String dirname)
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.
|
void |
update(javax.media.rtp.event.ReceiveStreamEvent event)
Implements
ReceiveStreamListener.update(ReceiveStreamEvent). |
public RecorderRtpImpl(RTPTranslator translator)
translator - the RTPTranslator to which this instance will
attach in order to record media.public void addListener(Recorder.Listener listener)
Recorder.addListener(Recorder.Listener).addListener in interface Recorderlistener - the new Listener to be added to the list of
listeners interested in notifications from this Recorderpublic void removeListener(Recorder.Listener listener)
Recorder.removeListener(Recorder.Listener).removeListener in interface Recorderlistener - the existing Listener to be removed from the
list of listeners interested in notifications from this Recorderpublic List<String> getSupportedFormats()
Recorder.getSupportedFormats().getSupportedFormats in interface Recorderpublic void setMute(boolean mute)
Recorder.setMute(boolean).public String getFilename()
Recorder.getFilename(). Returns null, since we don't
have a (single) associated filename.getFilename in interface Recorderpublic void setEventHandler(RecorderEventHandler eventHandler)
setEventHandler in interface RecordereventHandler - the RecorderEventHandler to set.public void start(String format, String dirname) throws IOException, MediaException
start in interface Recorderformat - unused, since this implementation records multiple streams
using potentially different formats.dirname - the path to the directory into which this Recorder
will store the recorded media files.IOException - 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 Recorderpublic MediaStream getMediaStream()
getMediaStream in interface Recorderpublic void stop()
Recorderpublic void update(javax.media.rtp.event.ReceiveStreamEvent event)
ReceiveStreamListener.update(ReceiveStreamEvent).
rtpManager will use this to notify us of
ReceiveStreamEvents.update in interface javax.media.rtp.ReceiveStreamListenerpublic void controllerUpdate(javax.media.ControllerEvent ev)
ControllerListener.controllerUpdate(ControllerEvent).
Handles events from the Processors that this instance uses to
transcode media.controllerUpdate in interface javax.media.ControllerListenerev - the event to handle.public void activeSpeakerChanged(Long ssrc)
ActiveSpeakerChangedListener.activeSpeakerChanged(Object).
Notifies this RecorderRtpImpl that the audio
ReceiveStream considered active has changed, and that the new
active stream has SSRC ssrc.activeSpeakerChanged in interface org.jitsi.utils.dsi.ActiveSpeakerChangedListener<Long>ssrc - the SSRC of the new active stream.public SynchronizerImpl getSynchronizer()
RecordergetSynchronizer in interface Recorderpublic void setSynchronizer(Synchronizer synchronizer)
RecordersetSynchronizer in interface Recordersynchronizer - the Synchronizer to set.public void connect(Recorder recorder)
Copyright © 2021 jitsi.org. All rights reserved.