public class

ExoPlayer.PreloadConfiguration

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.ExoPlayer.PreloadConfiguration

Overview

Configuration options for preloading playlist items.

Summary

Fields
public static final ExoPlayer.PreloadConfigurationDEFAULT

Default preload configuration that disables playlist preloading.

public final longtargetPreloadDurationUs

The target duration to buffer when preloading, in microseconds or C.TIME_UNSET to disable preloading.

Constructors
publicPreloadConfiguration(long targetPreloadDurationUs)

Creates an instance.

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

Fields

public static final ExoPlayer.PreloadConfiguration DEFAULT

Default preload configuration that disables playlist preloading.

public final long targetPreloadDurationUs

The target duration to buffer when preloading, in microseconds or C.TIME_UNSET to disable preloading.

Constructors

public PreloadConfiguration(long targetPreloadDurationUs)

Creates an instance.

Parameters:

targetPreloadDurationUs: The target duration to preload, in microseconds or C.TIME_UNSET to disable preloading.