MediaPlayer2.OnDrmConfigHelper Interface definition of a callback to be invoked when the app can do DRM configuration (get/set properties) before the session is opened. 
MediaSession2.OnDataSourceMissingHelper Interface definition of a callback to be invoked when a MediaItem2 in the playlist didn't have a DataSourceDesc but it's needed now for preparing or playing it. 


AudioAttributesCompat A class to encapsulate a collection of attributes describing information about an audio stream. 
AudioAttributesCompat.Builder Builder class for AudioAttributesCompat objects. 
DataSourceDesc Structure for data source descriptor. 
DataSourceDesc.Builder Builder class for DataSourceDesc objects. 
Media2DataSource For supplying media data to the framework. 
MediaBrowser2 Browses media content offered by a MediaLibraryService2
MediaBrowser2.BrowserCallback Callback to listen events from MediaLibraryService2
MediaBrowserServiceCompat Base class for media browse services. 
MediaBrowserServiceCompat.BrowserRoot Contains information that the browser service needs to send to the client when first connected. 
MediaBrowserServiceCompat.Result<T> Completion handler for asynchronous callback methods in MediaBrowserServiceCompat
MediaController2 Allows an app to interact with an active MediaSession2 or a MediaSessionService2 in any status. 
MediaController2.ControllerCallback Interface for listening to change in activeness of the MediaSession2
MediaController2.PlaybackInfo Holds information about the the way volume is handled for this session. 
MediaItem2 A class with information on a single media item with the metadata information. 
MediaItem2.Builder Build MediaItem2  
MediaLibraryService2 Base class for media library services. 
MediaLibraryService2.LibraryRoot Contains information that the library service needs to send to the client when MediaBrowser2.getLibraryRoot(Bundle) is called. 
MediaLibraryService2.MediaLibrarySession Session for the MediaLibraryService2
MediaLibraryService2.MediaLibrarySession.Builder Builder for MediaLibraryService2.MediaLibrarySession
MediaLibraryService2.MediaLibrarySession.MediaLibrarySessionCallback Callback for the MediaLibraryService2.MediaLibrarySession
MediaMetadata2 Contains metadata about an item, such as the title, artist, etc. 
MediaMetadata2.Builder Use to build MediaMetadata2x objects. 
MediaPlayer2 MediaPlayer2 class can be used to control playback of audio/video files and streams. 
MediaPlayer2.DrmEventCallback Interface definition for callbacks to be invoked when the player has the corresponding DRM events. 
MediaPlayer2.DrmInfo Encapsulates the DRM properties of the source. 
MediaPlayer2.MediaPlayer2EventCallback Interface definition for callbacks to be invoked when the player has the corresponding events. 
MediaPlayer2.MetricsConstants Definitions for the metrics that are reported via the MediaPlayer2.getMetrics() call. 
MediaPlayer2.TrackInfo Class for MediaPlayer2 to return each audio/video/subtitle track's metadata. 
MediaPlayerInterface Base interface for all media players that want media session. 
MediaPlayerInterface.PlayerEventCallback A callback class to receive notifications for events on the media player. 
MediaPlaylistAgent MediaPlaylistAgent is the abstract class an application needs to derive from to pass an object to a MediaSession2 that will override default playlist handling behaviors. 
MediaPlaylistAgent.PlaylistEventCallback A callback class to receive notifications for events on the media player. 
MediaSession2 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. 
MediaSession2.Builder Builder for MediaSession2
MediaSession2.CommandButton Button for a SessionCommand2 that will be shown by the controller. 
MediaSession2.CommandButton.Builder Builder for MediaSession2.CommandButton
MediaSession2.ControllerInfo Information of a controller. 
MediaSession2.SessionCallback Callback to be called for all incoming commands from MediaController2s. 
MediaSessionManager Provides support for interacting with media sessions that applications have published to express their ongoing media playback state. 
MediaSessionManager.RemoteUserInfo Information of a remote user of MediaSessionCompat or MediaBrowserServiceCompat
MediaSessionService2 Base class for media session services, which is the service version of the MediaSession2
MediaSessionService2.MediaNotification Returned by MediaSessionService2.onUpdateNotification() for making session service foreground service to keep playback running in the background. 
Rating2 A class to encapsulate rating information used as content metadata. 
SessionCommand2 Define a command that a MediaController2 can send to a MediaSession2
SessionCommandGroup2 A set of SessionCommand2 which represents a command group. 
SessionToken2 Represents an ongoing MediaSession2 or a MediaSessionService2
VolumeProviderCompat Handles requests to adjust or set the volume on a session. 
VolumeProviderCompat.Callback Listens for changes to the volume. 


MediaPlayer2.NoDrmSchemeException Thrown when a DRM method is called before preparing a DRM scheme through prepareDrm(). 
MediaPlayer2.ProvisioningNetworkErrorException Thrown when the device requires DRM provisioning but the provisioning attempt has failed due to a network error (Internet reachability, timeout, etc.). 
MediaPlayer2.ProvisioningServerErrorException Thrown when the device requires DRM provisioning but the provisioning attempt has failed due to the provisioning server denying the request.