public class HlsSourceSelector extends java.lang.Object implements SourceSelector
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 and Description |
|---|
HlsSourceSelector() |
| Modifier and Type | Method and Description |
|---|---|
Source |
selectSource(Video video)
Determines best appropriate Source within given Video object based on logic implemented.
|
@NonNull public Source selectSource(@NonNull Video video) throws NoSourceFoundException
selectSource in interface SourceSelectorvideo - Video in which to find the most appropriate Sourcejava.lang.IllegalArgumentException - when the Video passed is nullNoSourceFoundException - when no valid Source is found