Class LoadEventInfo
- java.lang.Object
-
- com.google.android.exoplayer2.source.LoadEventInfo
-
public final class LoadEventInfo extends Object
MediaSourceload event information.
-
-
Field Summary
Fields Modifier and Type Field Description longbytesLoadedThe number of bytes that were loaded up to the event time.DataSpecdataSpecDefines the requested data.longelapsedRealtimeMsThe value ofSystemClock.elapsedRealtime()at the time of the load event.longloadDurationMsThe duration of the load up to the event time.longloadTaskIdIdentifies the load task to which this event corresponds.Map<String,List<String>>responseHeadersThe response headers associated with the load, or an empty map if unavailable.UriuriTheUrifrom which data is being read.
-
Constructor Summary
Constructors Constructor Description LoadEventInfo(long loadTaskId, DataSpec dataSpec, long elapsedRealtimeMs)LoadEventInfo(long loadTaskId, DataSpec dataSpec, Uri uri, Map<String,List<String>> responseHeaders, long elapsedRealtimeMs, long loadDurationMs, long bytesLoaded)Creates load event info.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longgetNewId()Returns an non-negative identifier which is unique to the JVM instance.
-
-
-
Field Detail
-
loadTaskId
public final long loadTaskId
Identifies the load task to which this event corresponds.
-
dataSpec
public final DataSpec dataSpec
Defines the requested data.
-
uri
public final Uri uri
-
responseHeaders
public final Map<String,List<String>> responseHeaders
The response headers associated with the load, or an empty map if unavailable.
-
elapsedRealtimeMs
public final long elapsedRealtimeMs
The value ofSystemClock.elapsedRealtime()at the time of the load event.
-
loadDurationMs
public final long loadDurationMs
The duration of the load up to the event time.
-
bytesLoaded
public final long bytesLoaded
The number of bytes that were loaded up to the event time.
-
-
Constructor Detail
-
LoadEventInfo
public LoadEventInfo(long loadTaskId, DataSpec dataSpec, long elapsedRealtimeMs)
-
LoadEventInfo
public LoadEventInfo(long loadTaskId, DataSpec dataSpec, Uri uri, Map<String,List<String>> responseHeaders, long elapsedRealtimeMs, long loadDurationMs, long bytesLoaded)Creates load event info.- Parameters:
loadTaskId- SeeloadTaskId.dataSpec- SeedataSpec.uri- Seeuri.responseHeaders- SeeresponseHeaders.elapsedRealtimeMs- SeeelapsedRealtimeMs.loadDurationMs- SeeloadDurationMs.bytesLoaded- SeebytesLoaded.
-
-