public static final class MediaSourceEventListener.LoadEventInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
long |
bytesLoaded
The number of bytes that were loaded up to the event time.
|
DataSpec |
dataSpec
Defines the requested data.
|
long |
elapsedRealtimeMs
The value of
SystemClock.elapsedRealtime() at the time of the load event. |
long |
loadDurationMs
The duration of the load up to the event time.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
responseHeaders
The response headers associated with the load, or an empty map if unavailable.
|
android.net.Uri |
uri
The
Uri from which data is being read. |
| Constructor and Description |
|---|
LoadEventInfo(DataSpec dataSpec,
android.net.Uri uri,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders,
long elapsedRealtimeMs,
long loadDurationMs,
long bytesLoaded)
Creates load event info.
|
public final DataSpec dataSpec
public final android.net.Uri uri
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 java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders
public final long elapsedRealtimeMs
SystemClock.elapsedRealtime() at the time of the load event.public final long loadDurationMs
public final long bytesLoaded
public LoadEventInfo(DataSpec dataSpec, android.net.Uri uri, java.util.Map<java.lang.String,java.util.List<java.lang.String>> responseHeaders, long elapsedRealtimeMs, long loadDurationMs, long bytesLoaded)
dataSpec - Defines the requested data.uri - The Uri from which data is being read. The uri must be identical to the
one in dataSpec.uri unless redirection has occurred. If redirection has occurred,
this is the uri after redirection.responseHeaders - The response headers associated with the load, or an empty map if
unavailable.elapsedRealtimeMs - The value of SystemClock.elapsedRealtime() at the time of the
load event.loadDurationMs - The duration of the load up to the event time.bytesLoaded - The number of bytes that were loaded up to the event time. For compressed
network responses, this is the decompressed size.