Back to Exoplayer

DefaultAssetLoaderFactory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/transformer/DefaultAssetLoaderFactory.html

latest6.9 KB
Original Source

Package com.google.android.exoplayer2.transformer

Class DefaultAssetLoaderFactory

  • java.lang.Object

    • com.google.android.exoplayer2.transformer.DefaultAssetLoaderFactory
  • All Implemented Interfaces:AssetLoader.Factory


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDefaultAssetLoaderFactoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[AssetLoader.Factory](AssetLoader.Factory.html "interface in com.google.android.exoplayer2.transformer")

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 default AssetLoader.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 an AssetLoader instance. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

DefaultAssetLoaderFactory

public DefaultAssetLoaderFactory​([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context,[Codec.DecoderFactory](Codec.DecoderFactory.html "interface in com.google.android.exoplayer2.transformer")decoderFactory,
                                 boolean forceInterpretHdrAsSdr,[Clock](../util/Clock.html "interface in com.google.android.exoplayer2.util")clock)

Deprecated.

Creates an instance. Parameters:context - The Context.decoderFactory - The Codec.DecoderFactory to use to decode the samples (if necessary).forceInterpretHdrAsSdr - Whether to apply TransformationRequest.HDR_MODE_EXPERIMENTAL_FORCE_INTERPRET_HDR_AS_SDR.clock - The Clock to use. It should always be Clock.DEFAULT, except for testing.

- 

DefaultAssetLoaderFactory

public DefaultAssetLoaderFactory​([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context,[Codec.DecoderFactory](Codec.DecoderFactory.html "interface in com.google.android.exoplayer2.transformer")decoderFactory,
                                 boolean forceInterpretHdrAsSdr,[Clock](../util/Clock.html "interface in com.google.android.exoplayer2.util")clock,[MediaSource.Factory](../source/MediaSource.Factory.html "interface in com.google.android.exoplayer2.source")mediaSourceFactory)

Deprecated.

Creates an instance. Parameters:context - The Context.decoderFactory - The Codec.DecoderFactory to use to decode the samples (if necessary).forceInterpretHdrAsSdr - Whether to apply TransformationRequest.HDR_MODE_EXPERIMENTAL_FORCE_INTERPRET_HDR_AS_SDR.clock - The Clock to use. It should always be Clock.DEFAULT, except for testing.mediaSourceFactory - The MediaSource.Factory to use to retrieve the samples to transform when an ExoPlayerAssetLoader is used.

Method Detail

- 

createAssetLoader

public[AssetLoader](AssetLoader.html "interface in com.google.android.exoplayer2.transformer")createAssetLoader​([EditedMediaItem](EditedMediaItem.html "class in com.google.android.exoplayer2.transformer")editedMediaItem,[Looper](https://developer.android.com/reference/android/os/Looper.html "class or interface in android.os")looper,[AssetLoader.Listener](AssetLoader.Listener.html "interface in com.google.android.exoplayer2.transformer")listener)

Deprecated.

Description copied from interface: AssetLoader.Factory

Creates an AssetLoader instance. Specified by:createAssetLoader in interface AssetLoader.FactoryParameters:editedMediaItem - The EditedMediaItem to load.looper - The Looper that's used to access the AssetLoader after it's been created.listener - The AssetLoader.Listener on which the AssetLoader should notify of events.Returns:An AssetLoader.