# LoadingInfo

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

*** ** * ** ***


```
@UnstableApi
public final class LoadingInfo
```

<br />

*** ** * ** ***

Information about the player state when loading is started or continued.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo.Builder` A builder for `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo` instances. |

| ### Public fields |
|---|---|
| `final long` | `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo#lastRebufferRealtimeMs()` Sets the time at which the last rebuffering occurred, in milliseconds since boot including time spent in sleep. |
| `final long` | `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo#playbackPositionUs()` The current playback position in microseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if unset. |
| `final float` | `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo#playbackSpeed()` The playback speed indicating the current rate of playback, or `https://developer.android.com/reference/androidx/media3/common/C#RATE_UNSET()` if playback speed is not known when the load is started or continued. |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo.Builder` | `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo#buildUpon()()` Creates a new `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo.Builder`, copying the initial values from this instance. |
| `boolean` | `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html o)` |
| `int` | `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo#hashCode()()` |
| `boolean` | `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo#rebufferedSince(long)(long realtimeMs)` Checks if rebuffering has occurred since `realtimeMs`. |

## Public fields

### lastRebufferRealtimeMs

```
public final long lastRebufferRealtimeMs
```

Sets the time at which the last rebuffering occurred, in milliseconds since boot including time spent in sleep.

The time base used is the same as that measured by `https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()`.

**Note:** If rebuffer events are not known when the load is started or continued, or if no rebuffering has occurred, or if there have been any user interactions such as seeking or stopping the player, the value will be set to `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()`.

### playbackPositionUs

```
public final long playbackPositionUs
```

The current playback position in microseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if unset. If playback of the period to which this loading info belongs has not yet started, the value will be the starting position in the period minus the duration of any media in previous periods still to be played.

### playbackSpeed

```
public final float playbackSpeed
```

The playback speed indicating the current rate of playback, or `https://developer.android.com/reference/androidx/media3/common/C#RATE_UNSET()` if playback speed is not known when the load is started or continued.

## Public methods

### buildUpon

```
public LoadingInfo.Builder buildUpon()
```

Creates a new `https://developer.android.com/reference/androidx/media3/exoplayer/LoadingInfo.Builder`, copying the initial values from this instance.

### equals

```
public boolean equals(@Nullable Object o)
```

### hashCode

```
public int hashCode()
```

### rebufferedSince

```
public boolean rebufferedSince(long realtimeMs)
```

Checks if rebuffering has occurred since `realtimeMs`.

| Parameters |
|---|---|
| `long realtimeMs` | The time to compare against, as measured by `https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()`. |

| Returns |
|---|---|
| `boolean` | Whether rebuffering has occurred since the provided timestamp. |