Package com.brightcove.player.controller
Class ExoPlayerSourceSelector
- java.lang.Object
-
- com.brightcove.player.controller.ExoPlayerSourceSelector
-
- All Implemented Interfaces:
SourceSelector
public final class ExoPlayerSourceSelector extends java.lang.Object implements SourceSelector
The default Source Selector used with ExoPlayer. It attempts selecting aDeliveryType.DASHSourcewhen available, or it will useBrightcoveSourceSelector.selectSource(Video)otherwise.This selector prioritize HEVC sources for Android API level 21 and higher.
-
-
Constructor Summary
Constructors Constructor Description ExoPlayerSourceSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceselectSource(Video video)Determines best appropriate Source within given Video object based on logic implemented.
-
-
-
Method Detail
-
selectSource
@NonNull public Source selectSource(@NonNull Video video) throws NoSourceFoundException
Determines best appropriate Source within given Video object based on logic implemented.- Specified by:
selectSourcein interfaceSourceSelector- Parameters:
video- Video in which to find the most appropriate Source- Returns:
- the best matched Source based on the currently implemented selection logic
- Throws:
java.lang.IllegalArgumentException- when the Video passed is nullNoSourceFoundException- when no validSourceis found
-
-