Class MediaLoadData
- java.lang.Object
-
- com.google.android.exoplayer2.source.MediaLoadData
-
@Deprecated public final class MediaLoadData extends Object
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Descriptor for data being loaded or selected by aMediaSource
.
-
-
Field Summary
Fields Modifier and Type Field Description @com.google.android.exoplayer2.C.DataType int
dataType
Deprecated.Thedata type
.long
mediaEndTimeMs
Deprecated.The end time of the media in theMediaPeriod
, orC.TIME_UNSET
if the data does not belong to a specificMediaPeriod
or the end time is unknown.long
mediaStartTimeMs
Deprecated.The start time of the media in theMediaPeriod
, orC.TIME_UNSET
if the data does not belong to a specificMediaPeriod
.Format
trackFormat
Deprecated.The format of the track to which the data belongs.Object
trackSelectionData
Deprecated.Optional data associated with the selection of the track to which the data belongs.@com.google.android.exoplayer2.C.SelectionReason int
trackSelectionReason
Deprecated.One of theselection reasons
if the data belongs to a track.@com.google.android.exoplayer2.C.TrackType int
trackType
Deprecated.One of thetrack types
, which is a media track type if the data corresponds to media of a specific type, orC.TRACK_TYPE_UNKNOWN
otherwise.
-
Constructor Summary
Constructors Constructor Description MediaLoadData(@com.google.android.exoplayer2.C.DataType int dataType)
Deprecated.Creates an instance with the givendataType
.MediaLoadData(@com.google.android.exoplayer2.C.DataType int dataType, @com.google.android.exoplayer2.C.TrackType int trackType, Format trackFormat, @com.google.android.exoplayer2.C.SelectionReason int trackSelectionReason, Object trackSelectionData, long mediaStartTimeMs, long mediaEndTimeMs)
Deprecated.Creates media load data.
-
-
-
Field Detail
-
dataType
public final @com.google.android.exoplayer2.C.DataType int dataType
Deprecated.Thedata type
.
-
trackType
public final @com.google.android.exoplayer2.C.TrackType int trackType
Deprecated.One of thetrack types
, which is a media track type if the data corresponds to media of a specific type, orC.TRACK_TYPE_UNKNOWN
otherwise.
-
trackFormat
@Nullable public final Format trackFormat
Deprecated.The format of the track to which the data belongs. Null if the data does not belong to a specific track.
-
trackSelectionReason
public final @com.google.android.exoplayer2.C.SelectionReason int trackSelectionReason
Deprecated.One of theselection reasons
if the data belongs to a track.C.SELECTION_REASON_UNKNOWN
otherwise.
-
trackSelectionData
@Nullable public final Object trackSelectionData
Deprecated.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
public final long mediaStartTimeMs
Deprecated.The start time of the media in theMediaPeriod
, orC.TIME_UNSET
if the data does not belong to a specificMediaPeriod
.
-
mediaEndTimeMs
public final long mediaEndTimeMs
Deprecated.The end time of the media in theMediaPeriod
, orC.TIME_UNSET
if the data does not belong to a specificMediaPeriod
or the end time is unknown.
-
-
Constructor Detail
-
MediaLoadData
public MediaLoadData(@com.google.android.exoplayer2.C.DataType int dataType)
Deprecated.Creates an instance with the givendataType
.
-
MediaLoadData
public MediaLoadData(@com.google.android.exoplayer2.C.DataType int dataType, @com.google.android.exoplayer2.C.TrackType int trackType, @Nullable Format trackFormat, @com.google.android.exoplayer2.C.SelectionReason int trackSelectionReason, @Nullable Object trackSelectionData, long mediaStartTimeMs, long mediaEndTimeMs)
Deprecated.Creates media load data.- Parameters:
dataType
- SeedataType
.trackType
- SeetrackType
.trackFormat
- SeetrackFormat
.trackSelectionReason
- SeetrackSelectionReason
.trackSelectionData
- SeetrackSelectionData
.mediaStartTimeMs
- SeemediaStartTimeMs
.mediaEndTimeMs
- SeemediaEndTimeMs
.
-
-