docs/doc/reference/com/google/android/exoplayer2/video/MediaCodecVideoDecoderException.html
Package com.google.android.exoplayer2.video
All Implemented Interfaces:Serializable
[@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
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.
|
-
codecInfo, diagnosticInfo
Constructors | Constructor | Description |
| --- | --- |
| MediaCodecVideoDecoderException(Throwable cause, MediaCodecInfo codecInfo, Surface surface) |
Deprecated.
|
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public final int surfaceIdentityHashCode
Deprecated.
The System.identityHashCode(Object) of the surface when the exception occurred.
-
public final boolean isSurfaceValid
Deprecated.
Whether the surface was valid when the exception occurred.
-
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.