package

androidx.media2.common

Interfaces

BaseResultBase interface for all result classes in MediaSession, MediaController, and SessionPlayer, for defining result codes in one place with documentation.
MediaItem.OnMetadataChangedListener
RatingAn interface to encapsulate rating information used as content metadata.

Classes

CallbackMediaItemStructure for media item descriptor for DataSourceCallback.
CallbackMediaItem.BuilderThis Builder class simplifies the creation of a CallbackMediaItem object.
DataSourceCallbackFor supplying media data, implement this if your app has special requirements for the way media data is obtained.
FileMediaItemStructure for media item for a file.
FileMediaItem.BuilderThis Builder class simplifies the creation of a FileMediaItem object.
MediaItemA class with information on a single media item with the metadata information.
MediaItem.BuilderBuilder for MediaItem.
MediaMetadataContains metadata about an item, such as the title, artist, etc.
MediaMetadata.BuilderUse to build MediaMetadatax objects.
MediaParcelUtils
ParcelImplListSliceTransfer a large list of ParcelImpl objects across an IPC.
SessionPlayerBase interface for all media players that want media session.
SessionPlayer.PlayerCallbackA callback class to receive notifications for events on the session player.
SessionPlayer.PlayerResultResult class of the asynchronous APIs.
SessionPlayer.TrackInfoInternal use only.
SubtitleDataClass encapsulating subtitle data, as received through the SessionPlayer.PlayerCallback.onSubtitleData(SessionPlayer, MediaItem, SessionPlayer.TrackInfo, SubtitleData) interface.
TrackInfoImplClass for MediaPlayer2 implementations to return each audio/video/subtitle track's metadata.
UriMediaItemStructure for media item descriptor for .
UriMediaItem.BuilderThis Builder class simplifies the creation of a UriMediaItem object.
VideoSizeImmutable class for describing video size.

Annotation Types

MediaMetadata.BitmapKey
MediaMetadata.BundleKey
MediaMetadata.FloatKey
MediaMetadata.LongKey
MediaMetadata.RatingKey
MediaMetadata.TextKey
SessionPlayer.BuffState
SessionPlayer.PlayerResult.ResultCode
SessionPlayer.PlayerState
SessionPlayer.RepeatMode
SessionPlayer.ShuffleMode
SessionPlayer.TrackInfo.MediaTrackType