Class DefaultAssetLoaderFactory
- java.lang.Object
-
- com.google.android.exoplayer2.transformer.DefaultAssetLoaderFactory
-
- All Implemented Interfaces:
AssetLoader.Factory
@Deprecated public final class DefaultAssetLoaderFactory extends Object implements AssetLoader.Factory
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.The defaultAssetLoader.Factory
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultAssetLoaderFactory(Context context, Codec.DecoderFactory decoderFactory, boolean forceInterpretHdrAsSdr, Clock clock)
Deprecated.Creates an instance.DefaultAssetLoaderFactory(Context context, Codec.DecoderFactory decoderFactory, boolean forceInterpretHdrAsSdr, Clock clock, MediaSource.Factory mediaSourceFactory)
Deprecated.Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AssetLoader
createAssetLoader(EditedMediaItem editedMediaItem, Looper looper, AssetLoader.Listener listener)
Deprecated.Creates anAssetLoader
instance.
-
-
-
Constructor Detail
-
DefaultAssetLoaderFactory
public DefaultAssetLoaderFactory(Context context, Codec.DecoderFactory decoderFactory, boolean forceInterpretHdrAsSdr, Clock clock)
Deprecated.Creates an instance.- Parameters:
context
- TheContext
.decoderFactory
- TheCodec.DecoderFactory
to use to decode the samples (if necessary).forceInterpretHdrAsSdr
- Whether to applyTransformationRequest.HDR_MODE_EXPERIMENTAL_FORCE_INTERPRET_HDR_AS_SDR
.clock
- TheClock
to use. It should always beClock.DEFAULT
, except for testing.
-
DefaultAssetLoaderFactory
public DefaultAssetLoaderFactory(Context context, Codec.DecoderFactory decoderFactory, boolean forceInterpretHdrAsSdr, Clock clock, MediaSource.Factory mediaSourceFactory)
Deprecated.Creates an instance.- Parameters:
context
- TheContext
.decoderFactory
- TheCodec.DecoderFactory
to use to decode the samples (if necessary).forceInterpretHdrAsSdr
- Whether to applyTransformationRequest.HDR_MODE_EXPERIMENTAL_FORCE_INTERPRET_HDR_AS_SDR
.clock
- TheClock
to use. It should always beClock.DEFAULT
, except for testing.mediaSourceFactory
- TheMediaSource.Factory
to use to retrieve the samples to transform when anExoPlayerAssetLoader
is used.
-
-
Method Detail
-
createAssetLoader
public AssetLoader createAssetLoader(EditedMediaItem editedMediaItem, Looper looper, AssetLoader.Listener listener)
Deprecated.Description copied from interface:AssetLoader.Factory
Creates anAssetLoader
instance.- Specified by:
createAssetLoader
in interfaceAssetLoader.Factory
- Parameters:
editedMediaItem
- TheEditedMediaItem
to load.looper
- TheLooper
that's used to access theAssetLoader
after it's been created.listener
- TheAssetLoader.Listener
on which theAssetLoader
should notify of events.- Returns:
- An
AssetLoader
.
-
-