MediaCodecRenderer.DecoderInitializationException


public class MediaCodecRenderer.DecoderInitializationException extends Exception


Thrown when a failure occurs instantiating a decoder.

Summary

Public fields

final @Nullable MediaCodecInfo

The MediaCodecInfo of the decoder that failed to initialize.

final @Nullable String

An optional developer-readable diagnostic information string.

final @Nullable MediaCodecRenderer.DecoderInitializationException

If the decoder failed to initialize and another decoder being used as a fallback also failed to initialize, the DecoderInitializationException for the fallback decoder.

final @Nullable String

The MIME type for which a decoder was being initialized.

final boolean

Whether it was required that the decoder support a secure output path.

Public constructors

DecoderInitializationException(
    Format format,
    @Nullable Throwable cause,
    boolean secureDecoderRequired,
    int errorCode
)
DecoderInitializationException(
    Format format,
    @Nullable Throwable cause,
    boolean secureDecoderRequired,
    MediaCodecInfo mediaCodecInfo
)

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 to initialize. Null if no suitable decoder was found.

diagnosticInfo

public final @Nullable String diagnosticInfo

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

fallbackDecoderInitializationException

public final @Nullable MediaCodecRenderer.DecoderInitializationException fallbackDecoderInitializationException

If the decoder failed to initialize and another decoder being used as a fallback also failed to initialize, the DecoderInitializationException for the fallback decoder. Null if there was no fallback decoder or no suitable decoders were found.

mimeType

public final @Nullable String mimeType

The MIME type for which a decoder was being initialized.

secureDecoderRequired

public final boolean secureDecoderRequired

Whether it was required that the decoder support a secure output path.

Public constructors

DecoderInitializationException

public DecoderInitializationException(
    Format format,
    @Nullable Throwable cause,
    boolean secureDecoderRequired,
    int errorCode
)

DecoderInitializationException

public DecoderInitializationException(
    Format format,
    @Nullable Throwable cause,
    boolean secureDecoderRequired,
    MediaCodecInfo mediaCodecInfo
)