Class ExoPlayerAssetLoader
- java.lang.Object
-
- com.google.android.exoplayer2.transformer.ExoPlayerAssetLoader
-
- All Implemented Interfaces:
AssetLoader
@Deprecated public final class ExoPlayerAssetLoader 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 uses anExoPlayer
to load samples.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExoPlayerAssetLoader.Factory
Deprecated.AnAssetLoader.Factory
forExoPlayerAssetLoader
instances.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.transformer.AssetLoader
AssetLoader.Listener, AssetLoader.SupportedOutputTypes
-
-
Field Summary
-
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.
-
-
-
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
-
-