public class CallbackMediaItem
extends MediaItem

   ↳ androidx.media2.common.MediaItem
     ↳ androidx.media2.common.CallbackMediaItem

Structure for media item descriptor for DataSourceCallback.

Users should use CallbackMediaItem.Builder to create CallbackMediaItem.

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

See also:


Nested classes

class CallbackMediaItem.Builder

This Builder class simplifies the creation of a CallbackMediaItem object. 

Inherited constants

Public methods

DataSourceCallback getDataSourceCallback()

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

Inherited methods