public static final class MediaSourceEventListener.MediaLoadData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
dataType
One of the
C DATA_TYPE_* constants defining the type of data. |
long |
mediaEndTimeMs
The end time of the media, or
C.TIME_UNSET if the data does not belong to a specific
media period or the end time is unknown. |
long |
mediaStartTimeMs
The start time of the media, or
C.TIME_UNSET if the data does not belong to a
specific media period. |
Format |
trackFormat
The format of the track to which the data belongs.
|
java.lang.Object |
trackSelectionData
Optional data associated with the selection of the track to which the data belongs.
|
int |
trackSelectionReason
One of the
C SELECTION_REASON_* constants if the data belongs to a track. |
int |
trackType
One of the
C TRACK_TYPE_* constants if the data corresponds to media of a
specific type. |
| Constructor and Description |
|---|
MediaLoadData(int dataType,
int trackType,
Format trackFormat,
int trackSelectionReason,
java.lang.Object trackSelectionData,
long mediaStartTimeMs,
long mediaEndTimeMs)
Creates media load data.
|
public final int dataType
C DATA_TYPE_* constants defining the type of data.public final int trackType
C TRACK_TYPE_* constants if the data corresponds to media of a
specific type. C.TRACK_TYPE_UNKNOWN otherwise.@Nullable public final Format trackFormat
public final int trackSelectionReason
C SELECTION_REASON_* constants if the data belongs to a track.
C.SELECTION_REASON_UNKNOWN otherwise.@Nullable public final java.lang.Object trackSelectionData
public final long mediaStartTimeMs
C.TIME_UNSET if the data does not belong to a
specific media period.public final long mediaEndTimeMs
C.TIME_UNSET if the data does not belong to a specific
media period or the end time is unknown.public MediaLoadData(int dataType,
int trackType,
@Nullable
Format trackFormat,
int trackSelectionReason,
@Nullable
java.lang.Object trackSelectionData,
long mediaStartTimeMs,
long mediaEndTimeMs)
dataType - One of the C DATA_TYPE_* constants defining the type of data.trackType - One of the C TRACK_TYPE_* constants if the data corresponds
to media of a specific type. C.TRACK_TYPE_UNKNOWN otherwise.trackFormat - The format of the track to which the data belongs. Null if the data does
not belong to a track.trackSelectionReason - One of the C SELECTION_REASON_* constants if the
data belongs to a track. C.SELECTION_REASON_UNKNOWN otherwise.trackSelectionData - Optional data associated with the selection of the track to which
the data belongs. Null if the data does not belong to a track.mediaStartTimeMs - The start time of the media, or C.TIME_UNSET if the data does
not belong to a specific media period.mediaEndTimeMs - The end time of the media, or C.TIME_UNSET if the data does not
belong to a specific media period or the end time is unknown.