Back to Exoplayer

MediaCodecDecoderException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecDecoderException.html

latest3.8 KB
Original Source

Package com.google.android.exoplayer2.mediacodec

Class MediaCodecDecoderException


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classMediaCodecDecoderExceptionextends[DecoderException](../decoder/DecoderException.html "class in com.google.android.exoplayer2.decoder")

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.

Thrown when a failure occurs in a MediaCodec decoder. See Also:Serialized Form

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | MediaCodecInfo | codecInfo | Deprecated.

The MediaCodecInfo of the decoder that failed. | | String | diagnosticInfo | Deprecated.

An optional developer-readable diagnostic information string. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | MediaCodecDecoderException​(Throwable cause, MediaCodecInfo codecInfo) | Deprecated. |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

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

Field Detail

- 

codecInfo

@Nullable
public final[MediaCodecInfo](MediaCodecInfo.html "class in com.google.android.exoplayer2.mediacodec")codecInfo

Deprecated.

The MediaCodecInfo of the decoder that failed. Null if unknown.

- 

diagnosticInfo

@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")diagnosticInfo

Deprecated.

An optional developer-readable diagnostic information string. May be null.

Constructor Detail

- 

MediaCodecDecoderException

public MediaCodecDecoderException​([Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,
                                  @Nullable[MediaCodecInfo](MediaCodecInfo.html "class in com.google.android.exoplayer2.mediacodec")codecInfo)

Deprecated.