androidx.media3.exoplayer.source


Annotations

ClippingMediaSource.IllegalClippingException.Reason

The reason clipping failed.

MergingMediaSource.IllegalMergeException.Reason

The reason the merge failed.

SampleStream.ReadDataResult

Return values of readData.

SampleStream.ReadFlags

Flags that can be specified when calling readData.

Interfaces

CompositeSequenceableLoaderFactory

A factory to create composite SequenceableLoaders.

DefaultMediaSourceFactory.AdsLoaderProvider

This interface is deprecated.

Use AdsLoader.Provider instead.

ExternalLoader

An object for loading media outside of ExoPlayer's loading mechanism.

MaskingMediaPeriod.PrepareListener

Listener for preparation events.

MediaPeriod

Loads media corresponding to a Timeline.Period, and allows that media to be read.

MediaPeriod.Callback

A callback to be notified of MediaPeriod events.

MediaSource

Defines and provides media to be played by an ExoPlayer.

MediaSource.Factory

Factory for creating MediaSources from MediaItems.

MediaSource.MediaSourceCaller

A caller of media sources, which will be notified of source events.

MediaSourceEventListener

Interface for callbacks to be notified of MediaSource events.

MediaSourceFactory

This interface is deprecated.

Use MediaSource.Factory.

ProgressiveMediaExtractor

Extracts the contents of a container file from a progressive media stream.

ProgressiveMediaExtractor.Factory

Creates ProgressiveMediaExtractor 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

A callback to be notified of SequenceableLoader events.

ShuffleOrder

Shuffled order of indices.

Classes

BaseMediaSource

Base MediaSource implementation to handle parallel reuse and to keep a list of s.

BundledExtractorsAdapter

ProgressiveMediaExtractor built on top of Extractor instances, whose implementation classes are bundled in the app.

ClippingMediaPeriod

Wraps a MediaPeriod and clips its SampleStreams to provide a subsequence of their samples.

ClippingMediaSource

MediaSource that wraps a source and clips its timeline based on specified start/end positions.

CompositeMediaSource

Composite MediaSource consisting of multiple child sources.

CompositeSequenceableLoader

A SequenceableLoader that encapsulates multiple other SequenceableLoaders.

ConcatenatingMediaSource

This class is deprecated.

Use playlist modification methods like addMediaItem instead.

ConcatenatingMediaSource2

Concatenates multiple MediaSources, combining everything in one single .

ConcatenatingMediaSource2.Builder

A builder for ConcatenatingMediaSource2 instances.

DefaultCompositeSequenceableLoaderFactory

Default implementation of CompositeSequenceableLoaderFactory.

DefaultMediaSourceFactory

The default MediaSource.Factory implementation.

EmptySampleStream

An empty SampleStream.

ExternalLoader.LoadRequest

A data class providing information associated with the load event.

ExternallyLoadedMediaSource

A MediaSource for media loaded outside of the usual ExoPlayer loading mechanism.

ExternallyLoadedMediaSource.Factory

Factory for ExternallyLoadedMediaSource.

FilteringMediaSource

A MediaSource that filters the available track types.

ForwardingTimeline

An overridable Timeline implementation forwarding all methods to another timeline.

LoadEventInfo

MediaSource load event information.

LoopingMediaSource

This class is deprecated.

To loop a MediaSource indefinitely, use setRepeatMode instead of this class.

MaskingMediaPeriod

Media period that defers calling createPeriod on a given source until createPeriod has been called.

MaskingMediaSource

A MediaSource that masks the Timeline 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 a MediaSource.

MediaParserExtractorAdapter

ProgressiveMediaExtractor implemented on top of the platform's MediaParser.

MediaParserExtractorAdapter.Factory

A ProgressiveMediaExtractor.Factory for instances of .

MediaSource.MediaPeriodId

Identifier for a MediaPeriod.

MediaSourceEventListener.EventDispatcher

Dispatches events to MediaSourceEventListeners.

MergingMediaSource

Merges multiple MediaSources.

ProgressiveMediaSource

Provides one period that loads data from a Uri and extracted using an Extractor.

ProgressiveMediaSource.Factory

Factory for ProgressiveMediaSources.

SampleQueue

A queue of media samples.

ShuffleOrder.DefaultShuffleOrder

The default ShuffleOrder implementation for random shuffle order.

ShuffleOrder.UnshuffledShuffleOrder

A ShuffleOrder implementation which does not shuffle.

SilenceMediaSource

Media source with a single period consisting of silent raw audio of a given duration.

SilenceMediaSource.Factory

Factory for SilenceMediaSources.

SinglePeriodTimeline

A Timeline consisting of a single period and static window.

SingleSampleMediaSource

This class is deprecated.

The only use for this class is subtitle playback, but it is only compatible with legacy subtitle decoding, which is not supported by default.

SingleSampleMediaSource.Factory

Factory for SingleSampleMediaSource.

TimelineWithUpdatedMediaItem

A Timeline that overrides the MediaItem.

TrackGroupArray

An immutable array of TrackGroups.

WrappingMediaSource

An abstract MediaSource wrapping a single child MediaSource.

Exceptions

BehindLiveWindowException

Thrown when a live playback falls behind the available media window.

ClippingMediaSource.IllegalClippingException

Thrown when a ClippingMediaSource cannot clip its wrapped source.

MergingMediaSource.IllegalMergeException

Thrown when a MergingMediaSource cannot merge its sources.

UnrecognizedInputFormatException

Thrown if the input format was not recognized.