public final class

LoadingInfo.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.LoadingInfo.Builder

Overview

A builder for LoadingInfo instances.

Summary

Constructors
publicBuilder()

Creates a new instance with default values.

Methods
public LoadingInfobuild()

Returns a new LoadingInfo instance with the current builder values.

public LoadingInfo.BuildersetLastRebufferRealtimeMs(long lastRebufferRealtimeMs)

Sets LoadingInfo.lastRebufferRealtimeMs.

public LoadingInfo.BuildersetPlaybackPositionUs(long playbackPositionUs)

Sets LoadingInfo.playbackPositionUs.

public LoadingInfo.BuildersetPlaybackSpeed(float playbackSpeed)

Sets LoadingInfo.playbackSpeed.

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

Constructors

public Builder()

Creates a new instance with default values.

Methods

public LoadingInfo.Builder setPlaybackPositionUs(long playbackPositionUs)

Sets LoadingInfo.playbackPositionUs. The default is C.TIME_UNSET

public LoadingInfo.Builder setPlaybackSpeed(float playbackSpeed)

Sets LoadingInfo.playbackSpeed. The default is C.RATE_UNSET

public LoadingInfo.Builder setLastRebufferRealtimeMs(long lastRebufferRealtimeMs)

Sets LoadingInfo.lastRebufferRealtimeMs. The default is C.TIME_UNSET

public LoadingInfo build()

Returns a new LoadingInfo instance with the current builder values.