MediaCodecVideoDecoderException


@UnstableApi
public class MediaCodecVideoDecoderException extends MediaCodecDecoderException


Thrown when a failure occurs in a MediaCodec video decoder.

Summary

Public fields

final boolean

Whether the surface was valid when the exception occurred.

final int

The identityHashCode of the surface when the exception occurred.

Public constructors

MediaCodecVideoDecoderException(
    Throwable cause,
    @Nullable MediaCodecInfo codecInfo,
    @Nullable Surface surface
)

Inherited fields

From androidx.media3.exoplayer.mediacodec.MediaCodecDecoderException
final @Nullable MediaCodecInfo

The MediaCodecInfo of the decoder that failed.

final @Nullable String

An optional developer-readable diagnostic information string.

final int

An optional error code reported by the codec.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

isSurfaceValid

public final boolean isSurfaceValid

Whether the surface was valid when the exception occurred.

surfaceIdentityHashCode

public final int surfaceIdentityHashCode

The identityHashCode of the surface when the exception occurred.

Public constructors

MediaCodecVideoDecoderException

public MediaCodecVideoDecoderException(
    Throwable cause,
    @Nullable MediaCodecInfo codecInfo,
    @Nullable Surface surface
)