public final class

LoadErrorHandlingPolicy.FallbackOptions

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.upstream.LoadErrorHandlingPolicy.FallbackOptions

Overview

Holds information about the available fallback options.

Summary

Fields
public final intnumberOfExcludedLocations

The number of locations that are already excluded.

public final intnumberOfExcludedTracks

The number of tracks that are already excluded.

public final intnumberOfLocations

The number of available locations.

public final intnumberOfTracks

The number of tracks.

Constructors
publicFallbackOptions(int numberOfLocations, int numberOfExcludedLocations, int numberOfTracks, int numberOfExcludedTracks)

Creates an instance.

Methods
public booleanisFallbackAvailable(int type)

Returns whether a fallback is available for the given fallback type.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final int numberOfLocations

The number of available locations.

public final int numberOfExcludedLocations

The number of locations that are already excluded.

public final int numberOfTracks

The number of tracks.

public final int numberOfExcludedTracks

The number of tracks that are already excluded.

Constructors

public FallbackOptions(int numberOfLocations, int numberOfExcludedLocations, int numberOfTracks, int numberOfExcludedTracks)

Creates an instance.

Methods

public boolean isFallbackAvailable(int type)

Returns whether a fallback is available for the given fallback type.