CallbackMediaItem

Added in 1.0.0
Deprecated in 1.3.0

class CallbackMediaItem : MediaItem


Structure for media item descriptor for DataSourceCallback.

Users should use Builder to create CallbackMediaItem.

You cannot directly send this object across the process through ParcelUtils. See MediaItem for detail.

See also
MediaItem

Summary

Nested types

This class is deprecated.

androidx.media2 is deprecated.

Public functions

DataSourceCallback

Return the DataSourceCallback that implements the callback for the data source of this media item.

Inherited Constants

From androidx.media2.common.MediaItem
const Long
POSITION_UNKNOWN = 576460752303423487

Used when a position is unknown.

Inherited functions

From androidx.media2.common.MediaItem
Long

Return the position in milliseconds at which the playback will end.

MediaMetadata?

Gets the metadata of the media.

Long

Return the position in milliseconds at which the playback will start.

Unit

Sets metadata.

String!

Public functions

getDataSourceCallback

Added in 1.0.0
Deprecated in 1.3.0
fun getDataSourceCallback(): DataSourceCallback

Return the DataSourceCallback that implements the callback for the data source of this media item.

Returns
DataSourceCallback

the DataSourceCallback that implements the callback for the data source of this media item,