Back to Exoplayer

MediaLoadData (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/MediaLoadData.html

latest7.2 KB
Original Source

Package com.google.android.exoplayer2.source

Class MediaLoadData


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classMediaLoadDataextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

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 a MediaSource.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | @com.google.android.exoplayer2.C.DataType int | dataType | Deprecated.

The data type. | | long | mediaEndTimeMs | Deprecated.

The end time of the media in the MediaPeriod, or C.TIME_UNSET if the data does not belong to a specific MediaPeriod or the end time is unknown. | | long | mediaStartTimeMs | Deprecated.

The start time of the media in the MediaPeriod, or C.TIME_UNSET if the data does not belong to a specific MediaPeriod. | | 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 the selection reasons if the data belongs to a track. | | @com.google.android.exoplayer2.C.TrackType int | trackType | Deprecated.

One of the track types, which is a media track type if the data corresponds to media of a specific type, or C.TRACK_TYPE_UNKNOWN otherwise. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | MediaLoadData​(@com.google.android.exoplayer2.C.DataType int dataType) | Deprecated.

Creates an instance with the given dataType. | | 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. |

Method Summary

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

dataType

public final @com.google.android.exoplayer2.C.DataType int dataType

Deprecated.

The data type.

- 

trackType

public final @com.google.android.exoplayer2.C.TrackType int trackType

Deprecated.

One of the track types, which is a media track type if the data corresponds to media of a specific type, or C.TRACK_TYPE_UNKNOWN otherwise.

- 

trackFormat

@Nullable
public final[Format](../Format.html "class in com.google.android.exoplayer2")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 the selection reasons if the data belongs to a track. C.SELECTION_REASON_UNKNOWN otherwise.

- 

trackSelectionData

@Nullable
public final[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")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 the MediaPeriod, or C.TIME_UNSET if the data does not belong to a specific MediaPeriod.

- 

mediaEndTimeMs

public final long mediaEndTimeMs

Deprecated.

The end time of the media in the MediaPeriod, or C.TIME_UNSET if the data does not belong to a specific MediaPeriod 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 given dataType.

- 

MediaLoadData

public MediaLoadData​(@com.google.android.exoplayer2.C.DataType int dataType,
                     @com.google.android.exoplayer2.C.TrackType int trackType,
                     @Nullable[Format](../Format.html "class in com.google.android.exoplayer2")trackFormat,
                     @com.google.android.exoplayer2.C.SelectionReason int trackSelectionReason,
                     @Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")trackSelectionData,
                     long mediaStartTimeMs,
                     long mediaEndTimeMs)

Deprecated.

Creates media load data. Parameters:dataType - See dataType.trackType - See trackType.trackFormat - See trackFormat.trackSelectionReason - See trackSelectionReason.trackSelectionData - See trackSelectionData.mediaStartTimeMs - See mediaStartTimeMs.mediaEndTimeMs - See mediaEndTimeMs.