# LoadErrorHandlingPolicy.FallbackSelection

# LoadErrorHandlingPolicy.FallbackSelection

Artifact:[androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.java+class:androidx.media3.exoplayer.upstream.LoadErrorHandlingPolicy.FallbackSelection)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackSelection "View this page in Java")

<br />

```
class LoadErrorHandlingPolicy.FallbackSelection
```

<br />

*** ** * ** ***

A selected fallback option.

## Summary

|                                                                                                                                                                                                                                                                         ### Public constructors                                                                                                                                                                                                                                                                          |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [FallbackSelection](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackSelection#FallbackSelection(int,long))`(` ` @`[LoadErrorHandlingPolicy.FallbackType](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackType)` type: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` exclusionDurationMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) `)` Creates an instance. |

|                             ### Public properties                             |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [exclusionDurationMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackSelection#exclusionDurationMs()) The duration for which the failing resource should be excluded, in milliseconds.                                                                          |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | `@`[LoadErrorHandlingPolicy.FallbackType](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackType) [type](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackSelection#type()) The type of fallback. |

## Public constructors

### FallbackSelection

```
FallbackSelection(
    @LoadErrorHandlingPolicy.FallbackType type: Int,
    exclusionDurationMs: Long
)
```

Creates an instance.  

|                                                                                                                      Parameters                                                                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
| `@`[LoadErrorHandlingPolicy.FallbackType](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy.FallbackType)` type: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The type of fallback.                                                                                  |
| `exclusionDurationMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                                                                                                                  | The duration for which the failing resource should be excluded, in milliseconds. Must be non-negative. |

## Public properties

### exclusionDurationMs

```
val exclusionDurationMs: Long
```

The duration for which the failing resource should be excluded, in milliseconds.  

### type

```
@LoadErrorHandlingPolicy.FallbackType
val type: Int
```

The type of fallback.