# ExoPlayer.PreloadConfiguration

# ExoPlayer.PreloadConfiguration

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/ExoPlayer.java+class:androidx.media3.exoplayer.ExoPlayer.PreloadConfiguration)

*** ** * ** ***

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

<br />

```
@UnstableApi
class ExoPlayer.PreloadConfiguration
```

<br />

*** ** * ** ***

Configuration options for preloading playlist items.

## Summary

|                                                                    ### Constants                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[ExoPlayer.PreloadConfiguration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration)`!` | [DEFAULT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration#DEFAULT()) Default preload configuration that disables playlist preloading. |

|                                                                                                                                   ### Public constructors                                                                                                                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PreloadConfiguration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration#PreloadConfiguration(long))`(targetPreloadDurationUs: `[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) | [targetPreloadDurationUs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration#targetPreloadDurationUs()) The target duration to buffer when preloading, in microseconds or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())to disable preloading. |

## Constants

### DEFAULT

```
const val DEFAULT: ExoPlayer.PreloadConfiguration!
```

Default preload configuration that disables playlist preloading.  

## Public constructors

### PreloadConfiguration

```
PreloadConfiguration(targetPreloadDurationUs: Long)
```

Creates an instance.  

|                                                Parameters                                                |
|----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `targetPreloadDurationUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The target duration to preload, in microseconds or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())to disable preloading. |

## Public properties

### targetPreloadDurationUs

```
val targetPreloadDurationUs: Long
```

The target duration to buffer when preloading, in microseconds or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())to disable preloading.