Package com.google.android.exoplayer2.source
-
Interface Summary Interface Description CompositeSequenceableLoaderFactory A factory to create compositeSequenceableLoaders.DefaultMediaSourceFactory.AdsLoaderProvider Deprecated. UseAdsLoader.Providerinstead.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 ofMediaPeriodevents.MediaSource Defines and provides media to be played by anExoPlayer.MediaSource.Factory Factory for creatingMediaSourcesfromMediaItems.MediaSource.MediaSourceCaller A caller of media sources, which will be notified of source events.MediaSourceEventListener Interface for callbacks to be notified ofMediaSourceevents.MediaSourceFactory Deprecated. UseMediaSource.Factory.ProgressiveMediaExtractor Extracts the contents of a container file from a progressive media stream.ProgressiveMediaExtractor.Factory CreatesProgressiveMediaExtractorinstances.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 ofSequenceableLoaderevents.ShuffleOrder Shuffled order of indices. -
Class Summary Class Description BaseMediaSource BaseMediaSourceimplementation to handle parallel reuse and to keep a list ofMediaSourceEventListeners.BundledExtractorsAdapter ProgressiveMediaExtractorbuilt on top ofExtractorinstances, whose implementation classes are bundled in the app.ClippingMediaPeriod Wraps aMediaPeriodand clips itsSampleStreams to provide a subsequence of their samples.ClippingMediaSource MediaSourcethat wraps a source and clips its timeline based on specified start/end positions.CompositeMediaSource<T> CompositeMediaSourceconsisting of multiple child sources.CompositeSequenceableLoader ASequenceableLoaderthat encapsulates multiple otherSequenceableLoaders.ConcatenatingMediaSource Concatenates multipleMediaSources.DefaultCompositeSequenceableLoaderFactory Default implementation ofCompositeSequenceableLoaderFactory.DefaultMediaSourceFactory The defaultMediaSource.Factoryimplementation.EmptySampleStream An emptySampleStream.ForwardingTimeline An overridableTimelineimplementation forwarding all methods to another timeline.LoadEventInfo MediaSourceload event information.LoopingMediaSource Deprecated. To loop aMediaSourceindefinitely, 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 AMediaSourcethat masks theTimelinewith 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 ProgressiveMediaExtractorimplemented 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 multipleMediaSources.ProgressiveMediaSource ProgressiveMediaSource.Factory Factory forProgressiveMediaSources.SampleQueue A queue of media samples.ShuffleOrder.DefaultShuffleOrder The defaultShuffleOrderimplementation for random shuffle order.ShuffleOrder.UnshuffledShuffleOrder AShuffleOrderimplementation 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 ATimelineconsisting of a single period and static window.SingleSampleMediaSource Loads data at a givenUrias a single sample belonging to a singleMediaPeriod.SingleSampleMediaSource.Factory Factory forSingleSampleMediaSource.TrackGroup Defines an immutable group of tracks identified by their format identity.TrackGroupArray An immutable array ofTrackGroups. -
Exception Summary Exception Description BehindLiveWindowException Thrown when a live playback falls behind the available media window.ClippingMediaSource.IllegalClippingException Thrown when aClippingMediaSourcecannot clip its wrapped source.MergingMediaSource.IllegalMergeException Thrown when aMergingMediaSourcecannot 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