docs/doc/reference/com/google/android/exoplayer2/upstream/LoadErrorHandlingPolicy.FallbackSelection.html
Package com.google.android.exoplayer2.upstream
Enclosing interface:LoadErrorHandlingPolicy
public static final classLoadErrorHandlingPolicy.FallbackSelectionextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A selected fallback option.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| long | exclusionDurationMs |
The duration for which the failing resource should be excluded, in milliseconds.
|
| @com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy.FallbackType int | type |
The type of fallback.
|
Constructors | Constructor | Description |
| --- | --- |
| FallbackSelection(@com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy.FallbackType int type, long exclusionDurationMs) |
Creates an instance.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final @com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy.FallbackType int type
The type of fallback.
-
public final long exclusionDurationMs
The duration for which the failing resource should be excluded, in milliseconds.
-
public FallbackSelection(@com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy.FallbackType int type,
long exclusionDurationMs)
Creates an instance.
Parameters:type - The type of fallback.exclusionDurationMs - The duration for which the failing resource should be excluded, in milliseconds. Must be non-negative.