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
)

This method is deprecated.

This method (and all support for 'legacy' subtitle decoding during rendering) will be removed in a future release.

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.

Constants

UNSUPPORTED

@UnstableApi
default static final MediaSourceFactory UNSUPPORTED

An instance that throws UnsupportedOperationException from createMediaSource and getSupportedTypes.