ActiveSpeakerDetectorFacade
@objc
public protocol ActiveSpeakerDetectorFacade
ActiveSpeakerDetectorFacade
listens to the volume indicator updates from the RealtimeControllerFacade
.
It consults the ActiveSpeakerPolicy
to determine if the speaker is active or not.
-
Starts the active speaker detector on the callback for the given policy.
Declaration
Swift
func addActiveSpeakerObserver( policy: ActiveSpeakerPolicy, observer: ActiveSpeakerObserver )
Parameters
policy
Handles Active Speaker implementation
observer
Observer that handles Active Speaker Events
-
Stops the active speaker detector callback from being called.
Declaration
Swift
func removeActiveSpeakerObserver(observer: ActiveSpeakerObserver)
Parameters
observer
Observer that handles Active Speaker Events
-
Handles bandwidth
Declaration
Swift
func hasBandwidthPriorityCallback(hasBandwidthPriority: Bool)
Parameters
hasBandwidthPriority
Tells the active speaker detector whether or not to prioritize video bandwidth for active speakers