Package com.google.android.exoplayer2.source
-
Interface Summary Interface Description CompositeSequenceableLoaderFactory A factory to create compositeSequenceableLoader
s.DefaultMediaSourceFactory.AdsLoaderProvider Deprecated. UseAdsLoader.Provider
instead.MaskingMediaPeriod.PrepareListener Listener for preparation events.MediaPeriod Loads media corresponding to aTimeline.Period
, and allows that media to be read.MediaPeriod.Callback A callback to be notified ofMediaPeriod
events.MediaSource Defines and provides media to be played by anExoPlayer
.MediaSource.Factory Factory for creatingMediaSources
fromMediaItems
.MediaSource.MediaSourceCaller A caller of media sources, which will be notified of source events.MediaSourceEventListener Interface for callbacks to be notified ofMediaSource
events.MediaSourceFactory Deprecated. UseMediaSource.Factory
.ProgressiveMediaExtractor Extracts the contents of a container file from a progressive media stream.ProgressiveMediaExtractor.Factory CreatesProgressiveMediaExtractor
instances.SampleQueue.UpstreamFormatChangedListener A listener for changes to the upstream format.SampleStream A stream of media samples (and associated format information).SequenceableLoader A loader that can proceed in approximate synchronization with other loaders.SequenceableLoader.Callback<T extends SequenceableLoader> A callback to be notified ofSequenceableLoader
events.ShuffleOrder Shuffled order of indices. -
Class Summary Class Description BaseMediaSource BaseMediaSource
implementation to handle parallel reuse and to keep a list ofMediaSourceEventListener
s.BundledExtractorsAdapter ProgressiveMediaExtractor
built on top ofExtractor
instances, whose implementation classes are bundled in the app.ClippingMediaPeriod Wraps aMediaPeriod
and clips itsSampleStream
s to provide a subsequence of their samples.ClippingMediaSource MediaSource
that wraps a source and clips its timeline based on specified start/end positions.CompositeMediaSource<T> CompositeMediaSource
consisting of multiple child sources.CompositeSequenceableLoader ASequenceableLoader
that encapsulates multiple otherSequenceableLoader
s.ConcatenatingMediaSource Concatenates multipleMediaSource
s.ConcatenatingMediaSource2 Concatenates multipleMediaSources
, combining everything in one singleTimeline.Window
.ConcatenatingMediaSource2.Builder A builder forConcatenatingMediaSource2
instances.DefaultCompositeSequenceableLoaderFactory Default implementation ofCompositeSequenceableLoaderFactory
.DefaultMediaSourceFactory The defaultMediaSource.Factory
implementation.EmptySampleStream An emptySampleStream
.ForwardingTimeline An overridableTimeline
implementation forwarding all methods to another timeline.LoadEventInfo MediaSource
load event information.LoopingMediaSource Deprecated. To loop aMediaSource
indefinitely, usePlayer.setRepeatMode(int)
instead of this class.MaskingMediaPeriod Media period that defers callingMediaSource.createPeriod(MediaPeriodId, Allocator, long)
on a given source untilMaskingMediaPeriod.createPeriod(MediaPeriodId)
has been called.MaskingMediaSource AMediaSource
that masks theTimeline
with a placeholder until the actual media structure is known.MaskingMediaSource.PlaceholderTimeline A timeline with one dynamic window with a period of indeterminate duration.MediaLoadData Descriptor for data being loaded or selected by aMediaSource
.MediaParserExtractorAdapter ProgressiveMediaExtractor
implemented on top of the platform'sMediaParser
.MediaPeriodId Identifies a specific playback of aTimeline.Period
.MediaSource.MediaPeriodId Identifier for aMediaPeriod
.MediaSourceEventListener.EventDispatcher Dispatches events toMediaSourceEventListeners
.MergingMediaSource Merges multipleMediaSource
s.ProgressiveMediaSource ProgressiveMediaSource.Factory Factory forProgressiveMediaSource
s.SampleQueue A queue of media samples.ShuffleOrder.DefaultShuffleOrder The defaultShuffleOrder
implementation for random shuffle order.ShuffleOrder.UnshuffledShuffleOrder AShuffleOrder
implementation which does not shuffle.SilenceMediaSource Media source with a single period consisting of silent raw audio of a given duration.SilenceMediaSource.Factory Factory forSilenceMediaSources
.SinglePeriodTimeline ATimeline
consisting of a single period and static window.SingleSampleMediaSource Loads data at a givenUri
as a single sample belonging to a singleMediaPeriod
.SingleSampleMediaSource.Factory Factory forSingleSampleMediaSource
.TrackGroup An immutable group of tracks available within a media stream.TrackGroupArray An immutable array ofTrackGroup
s.WrappingMediaSource An abstractMediaSource
wrapping a single childMediaSource
. -
Exception Summary Exception Description BehindLiveWindowException Thrown when a live playback falls behind the available media window.ClippingMediaSource.IllegalClippingException Thrown when aClippingMediaSource
cannot clip its wrapped source.MergingMediaSource.IllegalMergeException Thrown when aMergingMediaSource
cannot merge its sources.UnrecognizedInputFormatException Thrown if the input format was not recognized. -
Annotation Types Summary Annotation Type Description ClippingMediaSource.IllegalClippingException.Reason The reason clipping failed.MergingMediaSource.IllegalMergeException.Reason The reason the merge failed.SampleStream.ReadDataResult SampleStream.ReadFlags