Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

androidx.media2

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.

HeartRating

A class for rating with a single degree of rating, "heart" vs "no heart".

MediaBrowser

Browses media content offered by a MediaLibraryService.

MediaController

Allows an app to interact with an active MediaSession or a MediaSessionService which would provide MediaSession.

MediaItem

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

MediaLibraryService

Base class for media library services, which is the service containing MediaLibrarySession.

MediaMetadata

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

MediaPlayer

A media player which plays MediaItems.

MediaSession

Allows a media app to expose its transport controls and playback information in a process to other processes including the Android framework and other apps.

MediaSessionManager

Provides support for interacting with media sessions that applications have published in order to express their ongoing media playback state.

MediaSessionService

Base class for media session services, which is the service containing MediaSession.

MediaTimestamp

An immutable object that represents the linear correlation between the media time and the system time.

PercentageRating

A class for rating expressed as a percentage.

PlaybackParams

Structure for common playback params.

SessionCommand

Define a command that a MediaController can send to a MediaSession.

SessionCommandGroup

A set of SessionCommand which represents a command group.

SessionPlayer

Base interface for all media players that want media session.

SessionToken

Represents an ongoing MediaSession or a MediaSessionService.

StarRating

A class for rating expressed as the number of stars.

SubtitleData

Class encapsulating subtitle data, as received through the MediaPlayer.PlayerCallback#onSubtitleData interface.

ThumbRating

A class for rating with a single degree of rating, "thumb up" vs "thumb down".

TimedMetaData

Class that embodies one timed metadata access unit, including

  • a time stamp, and
  • raw uninterpreted byte-array extracted directly from the container.

UriMediaItem

Structure for media item descriptor for Uri.

VideoSize

Immutable class for describing video size.