Back to Exoplayer

LoadEventInfo (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/LoadEventInfo.html

latest7.1 KB
Original Source

Package com.google.android.exoplayer2.source

Class LoadEventInfo


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classLoadEventInfoextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

MediaSource load event information.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | long | bytesLoaded | Deprecated.

The number of bytes that were loaded up to the event time. | | DataSpec | dataSpec | Deprecated.

Defines the requested data. | | long | elapsedRealtimeMs | Deprecated.

The value of SystemClock.elapsedRealtime() at the time of the load event. | | long | loadDurationMs | Deprecated.

The duration of the load up to the event time. | | long | loadTaskId | Deprecated.

Identifies the load task to which this event corresponds. | | Map<String,​List<String>> | responseHeaders | Deprecated.

The response headers associated with the load, or an empty map if unavailable. | | Uri | uri | Deprecated.

The Uri from which data is being read. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | LoadEventInfo​(long loadTaskId, DataSpec dataSpec, long elapsedRealtimeMs) | Deprecated.

Equivalent to LoadEventInfo(loadTaskId, dataSpec, dataSpec.uri, Collections.emptyMap(), elapsedRealtimeMs, 0, 0). | | LoadEventInfo​(long loadTaskId, DataSpec dataSpec, Uri uri, Map<String,​List<String>> responseHeaders, long elapsedRealtimeMs, long loadDurationMs, long bytesLoaded) | Deprecated.

Creates load event info. |

Method Summary

All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | static long | getNewId() | Deprecated.

Returns an non-negative identifier which is unique to the JVM instance. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

loadTaskId

public final long loadTaskId

Deprecated.

Identifies the load task to which this event corresponds.

- 

dataSpec

public final[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec

Deprecated.

Defines the requested data.

- 

uri

public final[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uri

Deprecated.

The Uri from which data is being read. The uri will be identical to the one in dataSpec.uri unless redirection has occurred. If redirection has occurred, this is the uri after redirection.

- 

responseHeaders

public final[Map](https://developer.android.com/reference/java/util/Map.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang"),​[List](https://developer.android.com/reference/java/util/List.html?is-external=true "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")>> responseHeaders

Deprecated.

The response headers associated with the load, or an empty map if unavailable.

- 

elapsedRealtimeMs

public final long elapsedRealtimeMs

Deprecated.

The value of SystemClock.elapsedRealtime() at the time of the load event.

- 

loadDurationMs

public final long loadDurationMs

Deprecated.

The duration of the load up to the event time.

- 

bytesLoaded

public final long bytesLoaded

Deprecated.

The number of bytes that were loaded up to the event time.

Constructor Detail

- 

LoadEventInfo

public LoadEventInfo​(long loadTaskId,[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,
                     long elapsedRealtimeMs)

Deprecated.

Equivalent to LoadEventInfo(loadTaskId, dataSpec, dataSpec.uri, Collections.emptyMap(), elapsedRealtimeMs, 0, 0).

- 

LoadEventInfo

public LoadEventInfo​(long loadTaskId,[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec,[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uri,[Map](https://developer.android.com/reference/java/util/Map.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang"),​[List](https://developer.android.com/reference/java/util/List.html?is-external=true "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")>> responseHeaders,
                     long elapsedRealtimeMs,
                     long loadDurationMs,
                     long bytesLoaded)

Deprecated.

Creates load event info. Parameters:loadTaskId - See loadTaskId.dataSpec - See dataSpec.uri - See uri.responseHeaders - See responseHeaders.elapsedRealtimeMs - See elapsedRealtimeMs.loadDurationMs - See loadDurationMs.bytesLoaded - See bytesLoaded.

Method Detail

- 

getNewId

public static long getNewId()

Deprecated.

Returns an non-negative identifier which is unique to the JVM instance.