@UnstableApi
class LoadEventInfo


MediaSource load event information.

Summary

Public constructors

LoadEventInfo(
    loadTaskId: Long,
    dataSpec: DataSpec!,
    elapsedRealtimeMs: Long
)

Equivalent to LoadEventInfo(loadTaskId, dataSpec, dataSpec.uri, Collections.emptyMap(), elapsedRealtimeMs, 0, 0).

LoadEventInfo(
    loadTaskId: Long,
    dataSpec: DataSpec!,
    uri: Uri!,
    responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!,
    elapsedRealtimeMs: Long,
    loadDurationMs: Long,
    bytesLoaded: Long
)

Creates load event info.

Public functions

java-static Long

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 elapsedRealtime at the time of the load event.

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 Uri from which data is being read.

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 loadTaskId.

dataSpec: DataSpec!

See dataSpec.

uri: Uri!

See uri.

responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!

See responseHeaders.

elapsedRealtimeMs: Long

See elapsedRealtimeMs.

loadDurationMs: Long

See loadDurationMs.

bytesLoaded: Long

See bytesLoaded.

Public functions

getNewId

java-static fun getNewId(): Long

Returns an non-negative identifier which is unique to the JVM instance.

Public properties

bytesLoaded

val bytesLoadedLong

The number of bytes that were loaded up to the event time.

dataSpec

val dataSpecDataSpec!

Defines the requested data.

elapsedRealtimeMs

val elapsedRealtimeMsLong

The value of elapsedRealtime at the time of the load event.

loadDurationMs

val loadDurationMsLong

The duration of the load up to the event time.

loadTaskId

val loadTaskIdLong

Identifies the load task to which this event corresponds.

responseHeaders

val responseHeaders: (Mutable)Map<String!, (Mutable)List<String!>!>!

The response headers associated with the load, or an empty map if unavailable.

uri

val uriUri!

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.