Package 

Class DominantSpeakerIdentification

    • Constructor Summary

      Constructors 
      Constructor Description
      DominantSpeakerIdentification() Initializes a new DominantSpeakerIdentification instance.
    • Method Summary

      Modifier and Type Method Description
      void addPropertyChangeListener(PropertyChangeListener listener) Adds a PropertyChangeListener to the list of listeners interested in and notified about changes in the values of the properties of this DominantSpeakerIdentification.
      synchronized void decisionMakerExited(DominantSpeakerIdentification.DecisionMaker decisionMaker) Notifies this DominantSpeakerIdentification instance that a specific DecisionMaker has permanently stopped executing (in its background/daemon Thread).
      JSONObject doGetJSON() Retrieves a JSON representation of this instance for the purposes of the REST API of Videobridge.
      T getDominantSpeaker() Gets the identifier of the dominant speaker.
      void levelChanged(T id, int level) {@inheritDoc}
      void removePropertyChangeListener(PropertyChangeListener listener) Removes a PropertyChangeListener from the list of listeners interested in and notified about changes in the values of the properties of this DominantSpeakerIdentification.
      long runInDecisionMaker(DominantSpeakerIdentification.DecisionMaker decisionMaker) Runs in the background/daemon Thread of a specific DecisionMaker and makes the decision whether there has been a speaker switch event.
      • Methods inherited from class org.jitsi.utils.dsi.AbstractActiveSpeakerDetector

        addActiveSpeakerChangedListener, removeActiveSpeakerChangedListener
      • Methods inherited from class org.jitsi.utils.dsi.ActiveSpeakerDetector

        removeActiveSpeakerChangedListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DominantSpeakerIdentification

        DominantSpeakerIdentification()
        Initializes a new DominantSpeakerIdentification instance.
    • Method Detail

      • addPropertyChangeListener

         void addPropertyChangeListener(PropertyChangeListener listener)

        Adds a PropertyChangeListener to the list of listeners interested in and notified about changes in the values of the properties of this DominantSpeakerIdentification.

        Parameters:
        listener - a PropertyChangeListener to be notified aboutchanges in the values of the properties of thisDominantSpeakerIdentification
      • decisionMakerExited

         synchronized void decisionMakerExited(DominantSpeakerIdentification.DecisionMaker decisionMaker)

        Notifies this DominantSpeakerIdentification instance that a specific DecisionMaker has permanently stopped executing (in its background/daemon Thread). If the specified decisionMaker is the one utilized by this DominantSpeakerIdentification instance, the latter will update its state to reflect that the former has exited.

        Parameters:
        decisionMaker - the DecisionMaker which has exited
      • doGetJSON

         JSONObject doGetJSON()

        Retrieves a JSON representation of this instance for the purposes of the REST API of Videobridge.

        By the way, the method name reflects the fact that the method handles an HTTP GET request.

      • levelChanged

         void levelChanged(T id, int level)

        {@inheritDoc}

      • removePropertyChangeListener

         void removePropertyChangeListener(PropertyChangeListener listener)

        Removes a PropertyChangeListener from the list of listeners interested in and notified about changes in the values of the properties of this DominantSpeakerIdentification.

        Parameters:
        listener - a PropertyChangeListener to no longer benotified about changes in the values of the properties of thisDominantSpeakerIdentification
      • runInDecisionMaker

         long runInDecisionMaker(DominantSpeakerIdentification.DecisionMaker decisionMaker)

        Runs in the background/daemon Thread of a specific DecisionMaker and makes the decision whether there has been a speaker switch event.

        Parameters:
        decisionMaker - the DecisionMaker invoking the method