package

androidx.media2.player

Interfaces

MediaPlayer.OnDrmConfigHelperInterface definition of a callback to be invoked when the app can do DRM configuration (get/set properties) before the session is opened.
MediaPlayer2.OnDrmConfigHelperInterface definition of a callback to be invoked when the app can do DRM configuration (get/set properties) before the session is opened.

Classes

AudioFocusHandlerHandles audio focus and noisy intent depending on the AudioAttributesCompat.
MediaPlayerA media player which plays MediaItems.
MediaPlayer.DrmInfoEncapsulates the DRM properties of the source.
MediaPlayer.DrmResultResult class of the asynchronous DRM APIs.
MediaPlayer.MetricsConstantsDefinitions for the metrics that are reported via the MediaPlayer.getMetrics() call.
MediaPlayer.NoDrmSchemeExceptionThrown when a DRM method is called before preparing a DRM scheme through prepareDrm().
MediaPlayer.PlayerCallbackInterface definition for callbacks to be invoked when the player has the corresponding events.
MediaPlayer.TrackInfoClass for the player to return each audio/video/subtitle track's metadata.
MediaPlayer2MediaPlayer2 class can be used to control playback of audio/video files and streams.
MediaPlayer2.DrmEventCallbackInterface definition for callbacks to be invoked when the player has the corresponding DRM events.
MediaPlayer2.DrmInfoEncapsulates the DRM properties of the source.
MediaPlayer2.EventCallbackInterface definition for callbacks to be invoked when the player has the corresponding events.
MediaPlayer2.MetricsConstantsDefinitions for the metrics that are reported via the MediaPlayer2.getMetrics() call.
MediaPlayer2.NoDrmSchemeExceptionThrown when a DRM method is called before preparing a DRM scheme through prepareDrm().
MediaPlayer2.TrackInfoClass for MediaPlayer2 to return each audio/video/subtitle track's metadata.
MediaTimestampAn immutable object that represents the linear correlation between the media time and the system time.
PlaybackParamsStructure for common playback params.
PlaybackParams.BuilderThe builder class that makes it easy to chain setters to create a PlaybackParams object.
TimedMetaDataClass that embodies one timed metadata access unit, including
  • a time stamp, and
  • raw uninterpreted byte-array extracted directly from the container.
VideoSizeImmutable class for describing video size.

Annotation Types

MediaPlayer.DrmResult.DrmResultCode
MediaPlayer.MediaError
MediaPlayer.MediaInfo
MediaPlayer.SeekMode
MediaPlayer.TrackInfo.MediaTrackType
MediaPlayer2.CallCompleted
MediaPlayer2.CallStatus
MediaPlayer2.MediaError
MediaPlayer2.MediaInfo
MediaPlayer2.MediaPlayer2State
MediaPlayer2.PrepareDrmStatusCode
MediaPlayer2.SeekMode
PlaybackParams.AudioFallbackMode