DefaultSourceSelectionController

Default SourceSelector controller responsible to react to the SELECT_SOURCE event and call selectSource of the SourceSelector set. By default, BrightcoveSourceSelector is used.

The selected Source will be added to the SELECT_SOURCE event properties with the SOURCE key.

Constructors

Link copied to clipboard
constructor(eventEmitter: EventEmitter)
Initializes this controller with the given EventEmitter using the default BrightcoveSourceSelector.

Properties

Link copied to clipboard
Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun addListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
open fun addOnceListener(eventType: String, listener: EventListener)
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
Creates the Default Source Selection Controller using the default BrightcoveSourceSelector.
Link copied to clipboard
Creates the Default Source Selection Controller with a custom SourceSelector.
Link copied to clipboard
open fun findBestSourceByBitRate(sourceCollection: SourceCollection, bitRate: Integer): Source
Given a SourceCollection, finds the Source with the closest bit rate to the given value.
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
open fun removeListener(eventType: String)
Removes the specified listener from the EventEmitter.
Link copied to clipboard
open fun removeListeners()
Removes all set listeners from the EventEmitter.
Link copied to clipboard
open fun selectSource(video: Video): Source