public static final class MediaSourceEventListener.LoadEventInfo extends 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.
|
Map<String,List<String>> |
responseHeaders
The response headers associated with the load, or an empty map if unavailable.
|
Uri |
uri
The
Uri from which data is being read. |
public final DataSpec dataSpec
public final Uri uri
public final Map<String,List<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, Uri uri, Map<String,List<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.