docs/doc/reference/com/google/android/exoplayer2/transformer/ExoPlayerAssetLoader.Factory.html
Package com.google.android.exoplayer2.transformer
All Implemented Interfaces:AssetLoader.FactoryEnclosing class:ExoPlayerAssetLoader
public static final classExoPlayerAssetLoader.Factoryextends[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")
An AssetLoader.Factory for ExoPlayerAssetLoader instances.
Constructors | Constructor | Description |
| --- | --- |
| Factory(Context context, Codec.DecoderFactory decoderFactory, boolean forceInterpretHdrAsSdr, Clock clock) |
Creates an instance using a DefaultMediaSourceFactory.
|
| Factory(Context context, Codec.DecoderFactory decoderFactory, boolean forceInterpretHdrAsSdr, Clock clock, MediaSource.Factory mediaSourceFactory) |
Creates an instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| AssetLoader | createAssetLoader(EditedMediaItem editedMediaItem, Looper looper, AssetLoader.Listener listener) |
Creates an AssetLoader instance.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Factory([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)
Creates an instance using a DefaultMediaSourceFactory.
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.
-
public Factory([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)
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.
-
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)
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.