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.

Classes

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.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.
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
PlaybackParams.AudioFallbackMode