Back to Exoplayer

ImageAssetLoader (ExoPlayer library)

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

latest6.1 KB
Original Source

Package com.google.android.exoplayer2.transformer

Class ImageAssetLoader

  • java.lang.Object

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


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classImageAssetLoaderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[AssetLoader](AssetLoader.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.

An AssetLoader implementation that loads images into Bitmap 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.

An AssetLoader.Factory for ImageAssetLoader 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 current Transformer.ProgressState and updates progressHolder with the current progress if it is available. | | void | release() | Deprecated.

Stops loading data and releases all resources associated with the asset loader. | | void | start() | Deprecated.

Starts the asset loader. |

- 

Methods inherited from class java.lang.Object

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

Field Detail

- 

MIME_TYPE_IMAGE_ALL

public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")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 interface AssetLoader

- 

getProgress

public @com.google.android.exoplayer2.transformer.Transformer.ProgressState int getProgress​([ProgressHolder](ProgressHolder.html "class in com.google.android.exoplayer2.transformer")progressHolder)

Deprecated.

Description copied from interface: AssetLoader

Returns the current Transformer.ProgressState and updates progressHolder with the current progress if it is available. Specified by:getProgress in interface AssetLoaderParameters:progressHolder - A ProgressHolder, updated to hold the percentage progress if available.Returns:The Transformer.ProgressState.

- 

getDecoderNames

public[ImmutableMap](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableMap.html?is-external=true "class or interface in com.google.common.collect")<[Integer](https://developer.android.com/reference/java/lang/Integer.html "class or interface in java.lang"),​[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")> getDecoderNames()

Deprecated.

Description copied from interface: AssetLoader

Return the used decoders' names. Specified by:getDecoderNames in interface AssetLoaderReturns: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 interface AssetLoader