MediaSourceFactory


@UnstableApi
public interface MediaSourceFactory extends MediaSource.Factory


Summary

Constants

default static final MediaSourceFactory

An instance that throws UnsupportedOperationException from createMediaSource and getSupportedTypes.

Inherited methods

From androidx.media3.exoplayer.source.MediaSource.Factory
abstract MediaSource

Creates a new MediaSource with the specified MediaItem.

default MediaSource.Factory
@UnstableApi
experimentalParseSubtitlesDuringExtraction(
    boolean parseSubtitlesDuringExtraction
)

Sets whether subtitles should be parsed as part of extraction (before being added to the sample queue) or as part of rendering (when being taken from the sample queue).

abstract int[]

Returns the content types supported by media sources created by this factory.

default MediaSource.Factory

Sets the CmcdConfiguration.Factory used to obtain a CmcdConfiguration for a MediaItem.

abstract MediaSource.Factory

Sets the DrmSessionManagerProvider used to obtain a DrmSessionManager for a MediaItem.

abstract MediaSource.Factory

Sets an optional LoadErrorHandlingPolicy.

default MediaSource.Factory

Sets the SubtitleParser.Factory to be used for parsing subtitles during extraction if experimentalParseSubtitlesDuringExtraction is enabled.

Constants

UNSUPPORTED

@UnstableApi
default static final MediaSourceFactory UNSUPPORTED

An instance that throws UnsupportedOperationException from createMediaSource and getSupportedTypes.