on Load Completed
abstract fun onLoadCompleted(trackType: Int, bytesLoaded: Long, dataType: Int, reason: Int, format: Format, mediaStartTimeMs: Long, mediaEndTimeMs: Long, elapsedRealtimeMs: Long, loadDurationMs: Long)
Called when load has completed.
Parameters
track Type
One of the CTRACK_TYPE_*
constants.
bytes Loaded
The number of bytes that were loaded up to the event time.
data Type
One of the CDATA_TYPE_*
constants.
reason
One of the CSELECTION_REASON_*
constants.
format
the Format retrieved from ExoPlayer.
media Start Time Ms
The start time of the media, or TIME_UNSET if the data does not belong to a specific media period.
media End Time Ms
The end time of the media, or TIME_UNSET if the data does not belong to a specific media period or the end time is unknown.
elapsed Realtime Ms
The value of elapsedRealtime at the time of the load event.
load Duration Ms
The duration of the load up to the event time.