package

androidx.media3.common

Interfaces

AdViewProviderProvides information about views for the ad playback UI.
BundleableInterface for classes whose instance can be stored in a by Bundleable.toBundle() and can be restored from the by using the static CREATOR field that implements Bundleable.Creator.
Bundleable.Creator<T>Interface for the static CREATOR field of Bundleable classes.
DataReaderReads bytes from a data stream.
DebugViewProviderProvider for views to show diagnostic information during an export, for debugging.
EffectMarker interface for a video frame effect.
ErrorMessageProvider<T>Converts throwables into error codes and user readable error messages.
GlObjectsProviderProvider to customize the creation and maintenance of GL objects.
Metadata.EntryA metadata entry.
OnInputFrameProcessedListenerA listener for processing input frames.
PlayerA media player interface defining high-level functionality, such as the ability to play, pause, seek and query properties of the currently playing media.
Player.ListenerListener for changes in a Player.
PreviewingVideoGraphA VideoGraph specific to previewing.
PreviewingVideoGraph.FactoryA factory for creating a PreviewingVideoGraph.
SimpleBasePlayer.PositionSupplierA supplier for a position.
TrackSelectionA track selection consisting of a static subset of selected tracks belonging to a TrackGroup.
VideoFrameProcessorInterface for a video frame processor that applies changes to individual video frames.
VideoFrameProcessor.FactoryA factory for VideoFrameProcessor instances.
VideoFrameProcessor.ListenerListener for asynchronous frame processing events.
VideoGraphRepresents a graph for processing raw video frames.
VideoGraph.ListenerListener for video frame processing events.

Classes

AdOverlayInfoProvides information about an overlay view shown on top of an ad view group.
AdOverlayInfo.BuilderA builder for AdOverlayInfo instances.
AdPlaybackStateRepresents ad group times and information on the state and URIs of ads within each ad group.
AdPlaybackState.AdGroupRepresents a group of ads, with information about their states.
AudioAttributesAttributes for audio playback, which configure the underlying platform .
AudioAttributes.AudioAttributesV21A direct wrapper around android.media.AudioAttributes.
AudioAttributes.BuilderBuilder for AudioAttributes.
AuxEffectInfoRepresents auxiliary effect information, which can be used to attach an auxiliary effect to an underlying AudioTrack.
BasePlayerAbstract base Player which implements common implementation independent methods.
BundleListRetrieverA to transfer a list of across processes by splitting the list into multiple transactions.
CDefines constants used by the library.
ColorInfoStores color info.
ColorInfo.BuilderBuilds ColorInfo instances.
DeviceInfoInformation about the playback device.
DeviceInfo.BuilderBuilder for DeviceInfo.
DrmInitDataInitialization data for one or more DRM schemes.
DrmInitData.SchemeDataScheme initialization data.
FileTypesDefines common file type constants and helper methods.
FlagSetA set of integer flags.
FlagSet.BuilderA builder for FlagSet instances.
FormatRepresents a media format.
Format.BuilderBuilds Format instances.
ForwardingPlayerA Player that forwards method calls to another Player.
ForwardingSimpleBasePlayerA SimpleBasePlayer that forwards all calls to another Player instance.
FrameInfoValue class specifying information about a decoded video frame.
FrameInfo.BuilderA builder for FrameInfo instances.
GlTextureInfoContains information describing an OpenGL texture.
HeartRatingA rating expressed as "heart" or "no heart".
LabelA label for a Format.
MediaItemRepresentation of a media item.
MediaItem.AdsConfigurationConfiguration for playing back linear ads with a media item.
MediaItem.AdsConfiguration.BuilderBuilder for MediaItem.AdsConfiguration instances.
MediaItem.BuilderA builder for MediaItem instances.
MediaItem.ClippingConfigurationOptionally clips the media item to a custom start and end position.
MediaItem.ClippingConfiguration.BuilderBuilder for MediaItem.ClippingConfiguration instances.
MediaItem.ClippingProperties
MediaItem.DrmConfigurationDRM configuration for a media item.
MediaItem.DrmConfiguration.BuilderBuilder for MediaItem.DrmConfiguration.
MediaItem.LiveConfigurationLive playback configuration.
MediaItem.LiveConfiguration.BuilderBuilder for MediaItem.LiveConfiguration instances.
MediaItem.LocalConfigurationProperties for local playback.
MediaItem.RequestMetadataMetadata that helps the player to understand a playback request represented by a MediaItem.
MediaItem.RequestMetadata.BuilderBuilder for MediaItem.RequestMetadata instances.
MediaItem.Subtitle
MediaItem.SubtitleConfigurationProperties for a text track.
MediaItem.SubtitleConfiguration.BuilderBuilder for MediaItem.SubtitleConfiguration instances.
MediaLibraryInfoInformation about the media libraries.
MediaMetadataMetadata of a MediaItem, playlist, or a combination of multiple sources of Metadata.
MediaMetadata.BuilderA builder for MediaMetadata instances.
MediaPeriodIdIdentifies a specific playback of a Timeline.Period.
MetadataA collection of metadata entries.
MimeTypesDefines common MIME types and helper methods.
PercentageRatingA rating expressed as a percentage.
PlaybackParametersParameters that apply to playback, including speed setting.
Player.CommandsA set of commands.
Player.Commands.BuilderA builder for Player.Commands instances.
Player.EventsA set of events.
Player.PositionInfoPosition info describing a playback position involved in a discontinuity.
PriorityTaskManagerAllows tasks with associated priorities to control how they proceed relative to one another.
RatingA rating for media content.
SimpleBasePlayerA base implementation for Player that reduces the number of methods to implement to a minimum.
SimpleBasePlayer.MediaItemDataAn immutable description of an item in the playlist, containing both static setup information like MediaItem and dynamic data that is generally read from the media like the duration.
SimpleBasePlayer.MediaItemData.BuilderA builder for SimpleBasePlayer.MediaItemData objects.
SimpleBasePlayer.PeriodDataData describing the properties of a period inside a SimpleBasePlayer.MediaItemData.
SimpleBasePlayer.PeriodData.BuilderA builder for SimpleBasePlayer.PeriodData objects.
SimpleBasePlayer.StateAn immutable state description of the player.
SimpleBasePlayer.State.BuilderA builder for SimpleBasePlayer.State objects.
StarRatingA rating expressed as a fractional number of stars.
StreamKeyA key for a subset of media that can be separately loaded (a "stream").
SurfaceInfoImmutable value class for a and supporting information.
ThumbRatingA rating expressed as "thumbs up" or "thumbs down".
TimelineA flexible representation of the structure of media.
Timeline.PeriodHolds information about a period in a Timeline.
Timeline.RemotableTimelineA concrete class of Timeline to restore a Timeline instance from a sent by another process via IBinder.
Timeline.WindowHolds information about a window in a Timeline.
TrackGroupAn immutable group of tracks available within a media stream.
TrackGroupArrayAn immutable array of TrackGroups.
TracksInformation about groups of tracks.
Tracks.GroupInformation about a single group of tracks, including the underlying TrackGroup, the level to which each track is supported by the player, and whether any of the tracks are selected.
TrackSelectionArrayAn array of TrackSelections.
TrackSelectionOverrideA track selection override, consisting of a TrackGroup and the indices of the tracks within the group that should be selected.
TrackSelectionOverridesForces the selection of the specified tracks in TrackGroups.
TrackSelectionOverrides.BuilderBuilder for TrackSelectionOverrides.
TrackSelectionOverrides.TrackSelectionOverrideForces the selection of TrackSelectionOverrides.TrackSelectionOverride.trackIndices for a TrackGroup.
TrackSelectionParametersParameters for controlling track selection.
TrackSelectionParameters.AudioOffloadPreferencesPreferences and constraints for enabling audio offload.
TrackSelectionParameters.AudioOffloadPreferences.BuilderA builder for TrackSelectionParameters.AudioOffloadPreferences.
TrackSelectionParameters.BuilderA builder for TrackSelectionParameters.
TracksInfoInformation about groups of tracks.
TracksInfo.TrackGroupInfoInformation about a single group of tracks, including the underlying TrackGroup, the type of tracks it contains, and the level to which each track is supported by the player.
VideoSizeRepresents the video size.

Annotation Types

AdOverlayInfo.PurposeThe purpose of the overlay.
AdPlaybackState.AdStateRepresents the state of an ad in an ad group.
C.AudioAllowedCapturePolicyCapture policies for audio attributes.
C.AudioContentTypeContent types for audio attributes.
C.AudioFlagsFlags for audio attributes.
C.AudioUsageUsage types for audio attributes.
C.AuxiliaryTrackTypeAuxiliary track types.
C.BufferFlagsFlags which can apply to a buffer containing a media sample.
C.ColorRangeVideo color range.
C.ColorSpaceVideo color spaces, also referred to as color standards.
C.ColorTransferVideo/image color transfer characteristics.
C.ContentTypeRepresents a streaming or other media type.
C.CryptoModeCrypto modes for a codec.
C.CryptoTypeTypes of crypto implementation.
C.DataTypeRepresents a type of data.
C.EncodingRepresents an audio encoding, or an invalid or unset value.
C.FirstFrameStateState of the first frame in a video renderer.
C.FormatSupportLevel of support for a format.
C.NetworkTypeNetwork connection type.
C.PcmEncodingRepresents a PCM audio encoding, or an invalid or unset value.
C.PriorityA value indicating the priority of a operation.
C.ProjectionVideo projection types.
C.RoleFlagsTrack role flags.
C.SelectionFlagsTrack selection flags.
C.SelectionReasonRepresents a reason for selection.
C.SpatializationBehaviorRepresents the behavior affecting whether spatialization will be used.
C.StereoModeThe stereo mode for 360/3D/VR videos.
C.StreamTypeStream types for an .
C.TrackTypeRepresents a type of media track.
C.VideoChangeFrameRateStrategyStrategies for calling .
C.VideoOutputModeVideo decoder output modes.
C.VideoScalingModeVideo scaling modes for MediaCodec-based renderers.
C.VolumeFlagsVolume flags to be used when setting or adjusting device volume.
C.WakeModeMode specifying whether the player should hold a WakeLock and a WifiLock.
DeviceInfo.PlaybackTypeTypes of playback.
FileTypes.TypeFile types.
Format.CueReplacementBehaviorThe replacement behaviors for consecutive samples in a text track of type MimeTypes.APPLICATION_MEDIA3_CUES.
MediaMetadata.FolderTypeThe folder type of the media item.
MediaMetadata.MediaTypeThe type of content described by the media item.
MediaMetadata.PictureTypeThe picture type of the artwork.
PlaybackException.ErrorCodeCodes that identify causes of player errors.
Player.CommandCommands that indicate which method calls are currently permitted on a particular Player instance.
Player.DiscontinuityReasonReasons for position discontinuities.
Player.EventEvents that can be reported via Player.Listener.
Player.MediaItemTransitionReasonReasons for media item transitions.
Player.PlaybackSuppressionReasonReason why playback is suppressed even though Player.getPlayWhenReady() is true.
Player.PlayWhenReadyChangeReasonReasons for playWhenReady changes.
Player.RepeatModeRepeat modes for playback.
Player.StatePlayback state.
Player.TimelineChangeReasonReasons for timeline changes.
TrackSelection.TypeRepresents a type track selection.
TrackSelectionParameters.AudioOffloadPreferences.AudioOffloadModeThe preference level for enabling audio offload on the audio sink.
VideoFrameProcessor.InputTypeSpecifies how the input frames are made available to the VideoFrameProcessor.