Package com.brightcove.player.controller
Class HlsSourceSelector
java.lang.Object
com.brightcove.player.controller.HlsSourceSelector
- All Implemented Interfaces:
SourceSelector
The HLS Source Selector navigates the Video Source Collection and selects an HLS source.
Selects the higher HLS version available in the
SourceCollection retrieved with
source.getProperties().get(Source.Fields.EXT_X_VERSION)
It selects HTTPS if available.
This selector prioritize HEVC sources for Android API level 21 and higher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionselectSource(Video video) Determines best appropriate Source within given Video object based on logic implemented.
-
Constructor Details
-
HlsSourceSelector
public HlsSourceSelector()
-
-
Method Details
-
selectSource
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:
IllegalArgumentException- when the Video passed is nullNoSourceFoundException- when no validSourceis found
-