public class

MediaCodecRenderer.DecoderInitializationException

extends java.lang.Exception

 java.lang.Object

↳java.lang.Throwable

↳java.lang.Exception

↳androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.DecoderInitializationException

Overview

Thrown when a failure occurs instantiating a decoder.

Summary

Fields
public final MediaCodecInfocodecInfo

The MediaCodecInfo of the decoder that failed to initialize.

public final java.lang.StringdiagnosticInfo

An optional developer-readable diagnostic information string.

public final MediaCodecRenderer.DecoderInitializationExceptionfallbackDecoderInitializationException

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

public final java.lang.StringmimeType

The MIME type for which a decoder was being initialized.

public final booleansecureDecoderRequired

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

Constructors
publicDecoderInitializationException(Format format, java.lang.Throwable cause, boolean secureDecoderRequired, int errorCode)

publicDecoderInitializationException(Format format, java.lang.Throwable cause, boolean secureDecoderRequired, MediaCodecInfo mediaCodecInfo)

Methods
from java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Fields

public final java.lang.String mimeType

The MIME type for which a decoder was being initialized.

public final boolean secureDecoderRequired

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

public final MediaCodecInfo codecInfo

The MediaCodecInfo of the decoder that failed to initialize. Null if no suitable decoder was found.

public final java.lang.String diagnosticInfo

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

public final MediaCodecRenderer.DecoderInitializationException fallbackDecoderInitializationException

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

Constructors

public DecoderInitializationException(Format format, java.lang.Throwable cause, boolean secureDecoderRequired, int errorCode)

public DecoderInitializationException(Format format, java.lang.Throwable cause, boolean secureDecoderRequired, MediaCodecInfo mediaCodecInfo)