# LoadingInfo

# 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)

*** ** * ** ***

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

<br />

```
@UnstableApi
class LoadingInfo
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                    ### Nested types                                                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[LoadingInfo.Builder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo.Builder) A builder for[LoadingInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo)instances. |

|                                                  ### Public functions                                                  |
|------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LoadingInfo.Builder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo.Builder)`!` | [buildUpon](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo#buildUpon())`()` Creates a new[Builder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo.Builder), copying the initial values from this instance. |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                    | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                            | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo#hashCode())`()`                                                                                                                                                                        |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                    | [rebufferedSince](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo#rebufferedSince(long))`(realtimeMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Checks if rebuffering has occurred since`realtimeMs`.     |

|                              ### Public properties                              |
|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)   | [lastRebufferRealtimeMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo#lastRebufferRealtimeMs()) Sets the time at which the last rebuffering occurred, in milliseconds since boot including time spent in sleep.                                                                                                     |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)   | [playbackPositionUs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo#playbackPositionUs()) The current playback position in microseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if unset.                                                                |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [playbackSpeed](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadingInfo#playbackSpeed()) The playback speed indicating the current rate of playback, or[RATE_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#RATE_UNSET())if playback speed is not known when the load is started or continued. |

## Public functions

### buildUpon

```
fun buildUpon(): LoadingInfo.Builder!
```

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

### equals

```
fun equals(o: Any?): Boolean
```  

### hashCode

```
fun hashCode(): Int
```  

### rebufferedSince

```
fun rebufferedSince(realtimeMs: Long): Boolean
```

Checks if rebuffering has occurred since`realtimeMs`.  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| `realtimeMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The time to compare against, as measured by[elapsedRealtime](https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()). |

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|----------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether rebuffering has occurred since the provided timestamp. |

## Public properties

### lastRebufferRealtimeMs

```
val lastRebufferRealtimeMs: Long
```

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[elapsedRealtime](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[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()).  

### playbackPositionUs

```
val playbackPositionUs: Long
```

The current playback position in microseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/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

```
val playbackSpeed: Float
```

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