docs/doc/reference/com/google/android/exoplayer2/transformer/TextureAssetLoader.html
Package com.google.android.exoplayer2.transformer
All Implemented Interfaces:AssetLoader
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classTextureAssetLoaderextends[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 videos from traditional GLES texture instances.
Typically instantiated in a custom AssetLoader.Factory saving a reference to the created TextureAssetLoader. Input is provided calling queueInputTexture(int, long) to provide all the video frames, then signalling the end of input when finished.
-
AssetLoader.Factory, AssetLoader.Listener, AssetLoader.SupportedOutputTypes
-
SUPPORTED_OUTPUT_TYPE_DECODED, SUPPORTED_OUTPUT_TYPE_ENCODED
Constructors | Constructor | Description |
| --- | --- |
| TextureAssetLoader(EditedMediaItem editedMediaItem, AssetLoader.Listener assetLoaderListener, Format format, OnInputFrameProcessedListener frameProcessedListener) |
Deprecated.
Creates an instance. |
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.
|
| boolean | queueInputTexture(int texId, long presentationTimeUs) |
Deprecated.
Attempts to provide an input texture.
|
| void | release() |
Deprecated.
Stops loading data and releases all resources associated with the asset loader.
|
| void | signalEndOfVideoInput() |
Deprecated.
Signals that no further input frames will be rendered.
|
| void | start() |
Deprecated.
Starts the asset loader. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public TextureAssetLoader([EditedMediaItem](EditedMediaItem.html "class in com.google.android.exoplayer2.transformer")editedMediaItem,[AssetLoader.Listener](AssetLoader.Listener.html "interface in com.google.android.exoplayer2.transformer")assetLoaderListener,[Format](../Format.html "class in com.google.android.exoplayer2")format,[OnInputFrameProcessedListener](../util/OnInputFrameProcessedListener.html "interface in com.google.android.exoplayer2.util")frameProcessedListener)
Deprecated.
Creates an instance.
The EditedMediaItem.durationUs, Format.width and Format.height must be set.
-
public void start()
Deprecated.
Description copied from interface: AssetLoader
Starts the asset loader.
Specified by:start in interface AssetLoader
-
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.
-
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.
-
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
-
public boolean queueInputTexture(int texId,
long presentationTimeUs)
Deprecated.
Attempts to provide an input texture.
Must be called on the same thread as signalEndOfVideoInput().
Parameters:texId - The ID of the texture to queue.presentationTimeUs - The presentation time for the texture, in microseconds.Returns:Whether the texture was successfully queued. If false, the caller should try again later.
-
public void signalEndOfVideoInput()
Deprecated.
Signals that no further input frames will be rendered.
Must be called on the same thread as queueInputTexture(int, long).