@UnstableApi
class LoadEventInfo


MediaSource load event information.

Summary

Nested types

Builder for LoadEventInfo.

Public constructors

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

This function is deprecated.

Use Builder instead.

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

This function is deprecated.

Use Builder instead.

Public functions

LoadEventInfo.Builder!

Initializes a new Builder with the values from this instance.

LoadEventInfo!
copyWithTaskIdAndDurationMs(loadTaskId: Long, loadDurationMs: Long)

This function is deprecated.

Use buildUpon instead.

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.

String?

The ID of the steered pathway from which data is being loaded, or null if not applicable.

Uri!

The Uri from which data is being read.

Public constructors

LoadEventInfo

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

LoadEventInfo

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

Public functions

buildUpon

fun buildUpon(): LoadEventInfo.Builder!

Initializes a new Builder with the values from this instance.

copyWithTaskIdAndDurationMs

fun copyWithTaskIdAndDurationMs(loadTaskId: Long, loadDurationMs: Long): LoadEventInfo!

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.

steeredPathwayId

val steeredPathwayIdString?

The ID of the steered pathway from which data is being loaded, or null if not applicable.

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.