MediaLoadData
@UnstableApi
class MediaLoadData
Descriptor for data being loaded or selected by a MediaSource.
Summary
Public constructors |
|---|
MediaLoadData(@C.DataType dataType: Int)Creates an instance with the given |
MediaLoadData(Creates media load data. |
Public properties |
|
|---|---|
Int |
The |
Long |
The end time of the media in the |
Long |
The start time of the media in the |
Format? |
The format of the track to which the data belongs. |
Any? |
Optional data associated with the selection of the track to which the data belongs. |
Int |
One of the |
Int |
One of the |
Public constructors
MediaLoadData
MediaLoadData(
@C.DataType dataType: Int,
@C.TrackType trackType: Int,
trackFormat: Format?,
@C.SelectionReason trackSelectionReason: Int,
trackSelectionData: Any?,
mediaStartTimeMs: Long,
mediaEndTimeMs: Long
)
Creates media load data.
| Parameters | |
|---|---|
@C.DataType dataType: Int |
See |
@C.TrackType trackType: Int |
See |
trackFormat: Format? |
See |
@C.SelectionReason trackSelectionReason: Int |
See |
trackSelectionData: Any? |
See |
mediaStartTimeMs: Long |
See |
mediaEndTimeMs: Long |
See |
Public properties
mediaEndTimeMs
val mediaEndTimeMs: Long
The end time of the media in the MediaPeriod, or TIME_UNSET if the data does not belong to a specific MediaPeriod or the end time is unknown.
mediaStartTimeMs
val mediaStartTimeMs: Long
The start time of the media in the MediaPeriod, or TIME_UNSET if the data does not belong to a specific MediaPeriod.
trackFormat
val trackFormat: Format?
The format of the track to which the data belongs. Null if the data does not belong to a specific track.
trackSelectionData
val trackSelectionData: Any?
Optional data associated with the selection of the track to which the data belongs. Null if the data does not belong to a track.
trackSelectionReason
@C.SelectionReason
val trackSelectionReason: Int
One of the selection reasons if the data belongs to a track. SELECTION_REASON_UNKNOWN otherwise.
trackType
@C.TrackType
val trackType: Int
One of the track types, which is a media track type if the data corresponds to media of a specific type, or TRACK_TYPE_UNKNOWN otherwise.