Class LoadErrorHandlingPolicy.FallbackOptions

  • Enclosing interface:
    LoadErrorHandlingPolicy

    public static final class LoadErrorHandlingPolicy.FallbackOptions
    extends Object
    Holds information about the available fallback options.
    • Field Detail

      • numberOfLocations

        public final int numberOfLocations
        The number of available locations.
      • numberOfExcludedLocations

        public final int numberOfExcludedLocations
        The number of locations that are already excluded.
      • numberOfTracks

        public final int numberOfTracks
        The number of tracks.
      • numberOfExcludedTracks

        public final int numberOfExcludedTracks
        The number of tracks that are already excluded.
    • Constructor Detail

      • FallbackOptions

        public FallbackOptions​(int numberOfLocations,
                               int numberOfExcludedLocations,
                               int numberOfTracks,
                               int numberOfExcludedTracks)
        Creates an instance.
    • Method Detail

      • isFallbackAvailable

        public boolean isFallbackAvailable​(@com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy.FallbackType int type)
        Returns whether a fallback is available for the given fallback type.