docs/doc/reference/com/google/android/exoplayer2/source/LoadEventInfo.html
Package com.google.android.exoplayer2.source
[@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.
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.
|
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. |
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. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final long loadTaskId
Deprecated.
Identifies the load task to which this event corresponds.
-
public final[DataSpec](../upstream/DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec
Deprecated.
Defines the requested data.
-
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.
-
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.
-
public final long elapsedRealtimeMs
Deprecated.
The value of SystemClock.elapsedRealtime() at the time of the load event.
-
public final long loadDurationMs
Deprecated.
The duration of the load up to the event time.
-
public final long bytesLoaded
Deprecated.
The number of bytes that were loaded up to the event time.
-
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).
-
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.
-
public static long getNewId()
Deprecated.
Returns an non-negative identifier which is unique to the JVM instance.