Class ImageAssetLoader
- java.lang.Object
-
- com.google.android.exoplayer2.transformer.ImageAssetLoader
-
- All Implemented Interfaces:
AssetLoader
@Deprecated public final class ImageAssetLoader extends Object implements AssetLoader
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.AnAssetLoader
implementation that loads images intoBitmap
instances.Supports the image formats listed here except from GIFs, which could exhibit unexpected behavior.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageAssetLoader.Factory
Deprecated.AnAssetLoader.Factory
forImageAssetLoader
instances.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.transformer.AssetLoader
AssetLoader.Listener, AssetLoader.SupportedOutputTypes
-
-
Field Summary
Fields Modifier and Type Field Description static String
MIME_TYPE_IMAGE_ALL
Deprecated.-
Fields inherited from interface com.google.android.exoplayer2.transformer.AssetLoader
SUPPORTED_OUTPUT_TYPE_DECODED, SUPPORTED_OUTPUT_TYPE_ENCODED
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ImmutableMap<Integer,String>
getDecoderNames()
Deprecated.Return the used decoders' names.@com.google.android.exoplayer2.transformer.Transformer.ProgressState int
getProgress(ProgressHolder progressHolder)
Deprecated.Returns the currentTransformer.ProgressState
and updatesprogressHolder
with the current progress if it isavailable
.void
release()
Deprecated.Stops loading data and releases all resources associated with the asset loader.void
start()
Deprecated.Starts the asset loader.
-
-
-
Field Detail
-
MIME_TYPE_IMAGE_ALL
public static final String MIME_TYPE_IMAGE_ALL
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start()
Deprecated.Description copied from interface:AssetLoader
Starts the asset loader.- Specified by:
start
in interfaceAssetLoader
-
getProgress
public @com.google.android.exoplayer2.transformer.Transformer.ProgressState int getProgress(ProgressHolder progressHolder)
Deprecated.Description copied from interface:AssetLoader
Returns the currentTransformer.ProgressState
and updatesprogressHolder
with the current progress if it isavailable
.- Specified by:
getProgress
in interfaceAssetLoader
- Parameters:
progressHolder
- AProgressHolder
, updated to hold the percentage progress ifavailable
.- Returns:
- The
Transformer.ProgressState
.
-
getDecoderNames
public ImmutableMap<Integer,String> getDecoderNames()
Deprecated.Description copied from interface:AssetLoader
Return the used decoders' names.- Specified by:
getDecoderNames
in interfaceAssetLoader
- Returns:
- The decoders' names keyed by track type.
-
release
public void release()
Deprecated.Description copied from interface:AssetLoader
Stops loading data and releases all resources associated with the asset loader.- Specified by:
release
in interfaceAssetLoader
-
-