LoadEventInfo
@UnstableApi
class LoadEventInfo
MediaSource load event information.
Summary
Public constructors |
|---|
LoadEventInfo(Equivalent to |
LoadEventInfo(Creates load event info. |
Public functions |
|
|---|---|
LoadEventInfo! |
copyWithTaskIdAndDurationMs(loadTaskId: Long, loadDurationMs: Long) |
java-static Long |
getNewId()Returns an non-negative identifier which is unique to the JVM instance. |
Public properties |
|
|---|---|
Long |
The number of bytes that were loaded up to the event time. |
DataSpec! |
Defines the requested data. |
Long |
The value of |
Long |
The duration of the load up to the event time. |
Long |
Identifies the load task to which this event corresponds. |
(Mutable)Map<String!, (Mutable)List<String!>!>! |
The response headers associated with the load, or an empty map if unavailable. |
Uri! |
The |
Public constructors
LoadEventInfo
LoadEventInfo(
loadTaskId: Long,
dataSpec: DataSpec!,
elapsedRealtimeMs: Long
)
Equivalent to LoadEventInfo(loadTaskId, dataSpec, dataSpec.uri, Collections.emptyMap(), elapsedRealtimeMs, 0, 0).
LoadEventInfo
LoadEventInfo(
loadTaskId: Long,
dataSpec: DataSpec!,
uri: Uri!,
responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!,
elapsedRealtimeMs: Long,
loadDurationMs: Long,
bytesLoaded: Long
)
Creates load event info.
| Parameters | |
|---|---|
loadTaskId: Long |
See |
dataSpec: DataSpec! |
See |
uri: Uri! |
See |
responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>! |
See |
elapsedRealtimeMs: Long |
See |
loadDurationMs: Long |
See |
bytesLoaded: Long |
See |
Public functions
copyWithTaskIdAndDurationMs
fun copyWithTaskIdAndDurationMs(loadTaskId: Long, loadDurationMs: Long): LoadEventInfo!
Public properties
elapsedRealtimeMs
val elapsedRealtimeMs: Long
The value of elapsedRealtime at the time of the load event.