public abstract class AbstractActiveSpeakerDetector extends java.lang.Object implements ActiveSpeakerDetector
ActiveSpeakerDetector
which aids the implementations
of actual algorithms for the detection/identification of the active/dominant
speaker in a multipoint conference.Constructor and Description |
---|
AbstractActiveSpeakerDetector() |
Modifier and Type | Method and Description |
---|---|
void |
addActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
Adds a listener to be notified by this active speaker detector when the
active stream changes.
|
protected void |
fireActiveSpeakerChanged(long ssrc)
Notifies the ActiveSpeakerChangedListeners registered with this
instance that the active speaker in multipoint conference associated with
this instance has changed and is identified by a specific synchronization
source identifier/SSRC.
|
protected ActiveSpeakerChangedListener[] |
getActiveSpeakerChangedListeners()
Gets the list of listeners to be notified by this detector when the
active speaker changes.
|
void |
removeActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
Removes a listener to no longer be notified by this active speaker
detector when the active stream changes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
levelChanged
public void addActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
addActiveSpeakerChangedListener
in interface ActiveSpeakerDetector
listener
- the listener to register with this instance for
notifications about changes of the active speakerjava.lang.NullPointerException
- if the specified listener is
nullprotected void fireActiveSpeakerChanged(long ssrc)
ssrc
- the synchronization source identifier/SSRC of the active
speaker in the multipoint conferenceprotected ActiveSpeakerChangedListener[] getActiveSpeakerChangedListeners()
public void removeActiveSpeakerChangedListener(ActiveSpeakerChangedListener listener)
removeActiveSpeakerChangedListener
in interface ActiveSpeakerDetector
listener
- the listener to unregister with this instance for
notifications about changes of the active speaker
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.