Package com.google.android.exoplayer2
-
Interface Summary Interface Description Bundleable Interface for classes whose instance can be stored in aBundle
byBundleable.toBundle()
and can be restored from theBundle
by using the staticCREATOR
field that implementsBundleable.Creator
.Bundleable.Creator<T extends Bundleable> Interface for the staticCREATOR
field ofBundleable
classes.ExoPlayer An extensible media player that playsMediaSource
s.ExoPlayer.AudioComponent Deprecated. UseExoPlayer
, as theExoPlayer.AudioComponent
methods are defined by that interface.ExoPlayer.AudioOffloadListener A listener for audio offload events.ExoPlayer.DeviceComponent Deprecated. UsePlayer
, as theExoPlayer.DeviceComponent
methods are defined by that interface.ExoPlayer.TextComponent Deprecated. UsePlayer
, as theExoPlayer.TextComponent
methods are defined by that interface.ExoPlayer.VideoComponent Deprecated. UseExoPlayer
, as theExoPlayer.VideoComponent
methods are defined by that interface.LivePlaybackSpeedControl Controls the playback speed while playing live content in order to maintain a steady target live offset.LoadControl Controls buffering of media.Player A media player interface defining traditional high-level functionality, such as the ability to play, pause, seek and query properties of the currently playing media.Player.EventListener Deprecated. UsePlayer.Listener
.Player.Listener Listener of all changes in the Player.PlayerMessage.Sender A sender for messages.PlayerMessage.Target A target for messages.Renderer Renders media read from aSampleStream
.Renderer.WakeupListener Some renderers can signal whenRenderer.render(long, long)
should be called.RendererCapabilities Defines the capabilities of aRenderer
.RenderersFactory -
Class Summary Class Description AbstractConcatenatedTimeline Abstract base class for the concatenation of one or moreTimeline
s.BasePlayer Abstract basePlayer
which implements common implementation independent methods.BaseRenderer An abstract base class suitable for mostRenderer
implementations.BundleListRetriever C Defines constants used by the library.DefaultLivePlaybackSpeedControl ALivePlaybackSpeedControl
that adjusts the playback speed using a proportional controller.DefaultLivePlaybackSpeedControl.Builder Builder for aDefaultLivePlaybackSpeedControl
.DefaultLoadControl The defaultLoadControl
implementation.DefaultLoadControl.Builder Builder forDefaultLoadControl
.DefaultRenderersFactory DefaultRenderersFactory
implementation.DeviceInfo Information about the playback device.ExoPlayer.Builder A builder forExoPlayer
instances.ExoPlayerLibraryInfo Information about the media libraries.Format Represents a media format.Format.Builder BuildsFormat
instances.FormatHolder Holds aFormat
.ForwardingPlayer HeartRating A rating expressed as "heart" or "no heart".MediaItem Representation of a media item.MediaItem.AdsConfiguration Configuration for playing back linear ads with a media item.MediaItem.AdsConfiguration.Builder Builder forMediaItem.AdsConfiguration
instances.MediaItem.Builder A builder forMediaItem
instances.MediaItem.ClippingConfiguration Optionally clips the media item to a custom start and end position.MediaItem.ClippingConfiguration.Builder Builder forMediaItem.ClippingConfiguration
instances.MediaItem.ClippingProperties Deprecated. UseMediaItem.ClippingConfiguration
instead.MediaItem.DrmConfiguration DRM configuration for a media item.MediaItem.DrmConfiguration.Builder Builder forMediaItem.DrmConfiguration
.MediaItem.LiveConfiguration Live playback configuration.MediaItem.LiveConfiguration.Builder Builder forMediaItem.LiveConfiguration
instances.MediaItem.LocalConfiguration Properties for local playback.MediaItem.PlaybackProperties Deprecated. MediaItem.Subtitle Deprecated. UseMediaItem.SubtitleConfiguration
insteadMediaItem.SubtitleConfiguration Properties for a text track.MediaItem.SubtitleConfiguration.Builder Builder forMediaItem.SubtitleConfiguration
instances.MediaMetadata MediaMetadata.Builder A builder forMediaMetadata
instances.MetadataRetriever Retrieves the static metadata ofMediaItems
.NoSampleRenderer ARenderer
implementation whose track type isC.TRACK_TYPE_NONE
and does not consume data from itsSampleStream
.PercentageRating A rating expressed as a percentage.PlaybackParameters Parameters that apply to playback, including speed setting.Player.Commands A set ofcommands
.Player.Commands.Builder A builder forPlayer.Commands
instances.Player.Events A set ofevents
.Player.PositionInfo Position info describing a playback position involved in a discontinuity.PlayerMessage Defines a player message which can be sent with aPlayerMessage.Sender
and received by aPlayerMessage.Target
.Rating A rating for media content.RendererConfiguration The configuration of aRenderer
.SeekParameters Parameters that apply to seeking.SimpleExoPlayer Deprecated. UseExoPlayer
instead.SimpleExoPlayer.Builder Deprecated. UseExoPlayer.Builder
instead.StarRating A rating expressed as a fractional number of stars.ThumbRating A rating expressed as "thumbs up" or "thumbs down".Timeline A flexible representation of the structure of media.Timeline.Period Holds information about a period in aTimeline
.Timeline.RemotableTimeline Timeline.Window Holds information about a window in aTimeline
.TracksInfo Immutable information (TracksInfo.TrackGroupInfo
) about tracks.TracksInfo.TrackGroupInfo Information about tracks in aTrackGroup
: theirC.TrackType
, if their format is supported by the player and if they are selected for playback. -
Exception Summary Exception Description ExoPlaybackException Thrown when a non locally recoverable playback failure occurs.ExoTimeoutException A timeout of an operation on the ExoPlayer playback thread.IllegalSeekPositionException Thrown when an attempt is made to seek to a position that does not exist in the player'sTimeline
.ParserException Thrown when an error occurs parsing media data and metadata.PlaybackException Thrown when a non locally recoverable playback failure occurs. -
Annotation Types Summary Annotation Type Description C.AudioAllowedCapturePolicy Capture policies for audio attributes.C.AudioContentType Content types for audio attributes.C.AudioFlags Flags for audio attributes.C.AudioFocusGain Audio focus types.C.AudioManagerOffloadMode Playback offload mode.C.AudioUsage Usage types for audio attributes.C.BufferFlags Flags which can apply to a buffer containing a media sample.C.ColorRange Video color range.C.ColorSpace Video colorspaces.C.ColorTransfer Video color transfer characteristics.C.ContentType Represents a streaming or other media type.C.CryptoMode Crypto modes for a codec.C.CryptoType Types of crypto implementation.C.DataType Represents a type of data.C.Encoding Represents an audio encoding, or an invalid or unset value.C.FormatSupport Level of renderer support for a format.C.NetworkType Network connection type.C.PcmEncoding Represents a PCM audio encoding, or an invalid or unset value.C.Projection Video projection types.C.RoleFlags Track role flags.C.SelectionFlags Track selection flags.C.SelectionReason Represents a reason for selection.C.StereoMode The stereo mode for 360/3D/VR videos.C.StreamType Stream types for anAudioTrack
.C.TrackType Represents a type of media track.C.VideoChangeFrameRateStrategy Strategies for callingSurface.setFrameRate(float, int, int)
.C.VideoOutputMode Video decoder output modes.C.VideoScalingMode Video scaling modes forMediaCodec
-based renderers.C.WakeMode Mode specifying whether the player should hold a WakeLock and a WifiLock.DefaultRenderersFactory.ExtensionRendererMode Modes for using extension renderers.DeviceInfo.PlaybackType Types of playback.ExoPlaybackException.Type The type of source that produced the error.ExoTimeoutException.TimeoutOperation The operation which produced the timeout error.MediaMetadata.FolderType The folder type of the media item.MediaMetadata.PictureType The picture type of the artwork.PlaybackException.ErrorCode Codes that identify causes of player errors.PlaybackException.FieldNumber Identifiers for fields in aBundle
which represents a playback exception.Player.Command Commands that can be executed on aPlayer
.Player.DiscontinuityReason Reasons for position discontinuities.Player.Event Events that can be reported viaPlayer.Listener.onEvents(Player, Events)
.Player.MediaItemTransitionReason Reasons for media item transitions.Player.PlaybackSuppressionReason Reason why playback is suppressed even thoughPlayer.getPlayWhenReady()
istrue
.Player.PlayWhenReadyChangeReason Reasons forplayWhenReady
changes.Player.RepeatMode Repeat modes for playback.Player.State Playback state.Player.TimelineChangeReason Reasons for timeline changes.Renderer.MessageType Represents a type of message that can be passed to a renderer.Renderer.State The renderer states.RendererCapabilities.AdaptiveSupport Level of renderer support for adaptive format switches.RendererCapabilities.Capabilities Combined renderer capabilities.RendererCapabilities.FormatSupport Deprecated. UseC.FormatSupport
instead.RendererCapabilities.TunnelingSupport Level of renderer support for tunneling.