Package com.brightcove.player.controller
Class HlsSourceSelector
- java.lang.Object
-
- com.brightcove.player.controller.HlsSourceSelector
-
- All Implemented Interfaces:
SourceSelector
public class HlsSourceSelector extends java.lang.Object implements SourceSelector
The HLS Source Selector navigates the Video Source Collection and selects an HLS source. Selects the higher HLS version available in theSourceCollection
retrieved withsource.getProperties().get(Source.Fields.EXT_X_VERSION)
This selector prioritize HEVC sources for Android API level 21 and higher.
-
-
Constructor Summary
Constructors Constructor Description HlsSourceSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Source
selectSource(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:
selectSource
in 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 validSource
is found
-
-