Class 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 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.

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HlsSourceSelector

        public HlsSourceSelector()
    • 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 interface SourceSelector
        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 null
        NoSourceFoundException - when no valid Source is found