Back to Exoplayer

MediaCodecVideoDecoderException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/video/MediaCodecVideoDecoderException.html

latest4.5 KB
Original Source

Package com.google.android.exoplayer2.video

Class MediaCodecVideoDecoderException


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

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 video decoder. See Also:Serialized Form

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | boolean | isSurfaceValid | Deprecated.

Whether the surface was valid when the exception occurred. | | int | surfaceIdentityHashCode | Deprecated.

The System.identityHashCode(Object) of the surface when the exception occurred. |

- 

Fields inherited from class com.google.android.exoplayer2.mediacodec.MediaCodecDecoderException

codecInfo, diagnosticInfo

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | MediaCodecVideoDecoderException​(Throwable cause, MediaCodecInfo codecInfo, Surface surface) | 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

- 

surfaceIdentityHashCode

public final int surfaceIdentityHashCode

Deprecated.

The System.identityHashCode(Object) of the surface when the exception occurred.

- 

isSurfaceValid

public final boolean isSurfaceValid

Deprecated.

Whether the surface was valid when the exception occurred.

Constructor Detail

- 

MediaCodecVideoDecoderException

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

Deprecated.