public final class

ExoPlayerAssetLoader.Factory

extends java.lang.Object

implements AssetLoader.Factory

 java.lang.Object

↳androidx.media3.transformer.ExoPlayerAssetLoader.Factory

Overview

An AssetLoader.Factory for ExoPlayerAssetLoader instances.

Summary

Constructors
publicFactory(Context context, Codec.DecoderFactory decoderFactory, Clock clock)

Creates an instance using a DefaultMediaSourceFactory.

publicFactory(Context context, Codec.DecoderFactory decoderFactory, Clock clock, MediaSource.Factory mediaSourceFactory)

Creates an instance.

Methods
public AssetLoadercreateAssetLoader(EditedMediaItem editedMediaItem, Looper looper, AssetLoader.Listener listener, AssetLoader.CompositionSettings compositionSettings)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Factory(Context context, Codec.DecoderFactory decoderFactory, Clock clock)

Creates an instance using a DefaultMediaSourceFactory.

Parameters:

context: The .
decoderFactory: The Codec.DecoderFactory to use to decode the samples (if necessary).
clock: The Clock to use. It should always be Clock.DEFAULT, except for testing.

public Factory(Context context, Codec.DecoderFactory decoderFactory, Clock clock, MediaSource.Factory mediaSourceFactory)

Creates an instance.

Parameters:

context: The .
decoderFactory: The Codec.DecoderFactory to use to decode the samples (if necessary).
clock: The Clock to use. It should always be Clock.DEFAULT, except for testing.
mediaSourceFactory: The to use to retrieve the samples to transform.

Methods

public AssetLoader createAssetLoader(EditedMediaItem editedMediaItem, Looper looper, AssetLoader.Listener listener, AssetLoader.CompositionSettings compositionSettings)