MediaCodecDecoderException


@UnstableApi
public class MediaCodecDecoderException extends DecoderException

Known direct subclasses
MediaCodecVideoDecoderException

Thrown when a failure occurs in a MediaCodec video decoder.


Thrown when a failure occurs in a MediaCodec decoder.

Summary

Public fields

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.

Public constructors

MediaCodecDecoderException(
    Throwable cause,
    @Nullable MediaCodecInfo codecInfo
)

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

codecInfo

public final @Nullable MediaCodecInfo codecInfo

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

diagnosticInfo

public final @Nullable String diagnosticInfo

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

errorCode

public final int errorCode

An optional error code reported by the codec. May be 0 if no error code could be obtained.

Public constructors

MediaCodecDecoderException

public MediaCodecDecoderException(
    Throwable cause,
    @Nullable MediaCodecInfo codecInfo
)