DefaultSourceSelectionController
, please create your
customized SourceSelector
and use it to construct the DefaultSourceSelectionController
with DefaultSourceSelectionController.createWithSourceSelector(EventEmitter, SourceSelector)
@Deprecated public class ExoPlayerSourceSelectionController extends DefaultSourceSelectionController
TAG
eventEmitter, listenerTokens
Constructor and Description |
---|
ExoPlayerSourceSelectionController(EventEmitter eventEmitter)
Deprecated.
Initializes this controller with the given EventEmitter.
|
Modifier and Type | Method and Description |
---|---|
Source |
selectSource(Video video)
Deprecated.
Determines best appropriate Source within given Video object based on logic implemented.
|
create, createWithSourceSelector, findBestSourceByBitRate, getSourceSelector, initializeListeners, selectSource, setSourceSelector
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public ExoPlayerSourceSelectionController(EventEmitter eventEmitter)
eventEmitter
- the EventEmitter through which this controller will interact@NonNull public Source selectSource(@NonNull Video video) throws NoSourceFoundException
SourceSelector
selectSource
in interface SourceSelector
selectSource
in class DefaultSourceSelectionController
video
- Video in which to find the most appropriate SourceNoSourceFoundException
- when no valid Source
is foundSourceSelector.selectSource(com.brightcove.player.model.Video)