Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

androidx.media2.common

Classes

CallbackMediaItem

Structure for media item descriptor for DataSourceCallback.

DataSourceCallback

For supplying media data, implement this if your app has special requirements for the way media data is obtained.

FileMediaItem

Structure for media item for a file.

MediaItem

A class with information on a single media item with the metadata information.

MediaMetadata

Contains metadata about an item, such as the title, artist, etc.

SessionPlayer

Base interface for all media players that want media session.

UriMediaItem

Structure for media item descriptor for Uri.