docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.DecoderInitializationException.html
Package com.google.android.exoplayer2.mediacodec
All Implemented Interfaces:SerializableEnclosing class:MediaCodecRenderer
public static classMediaCodecRenderer.DecoderInitializationExceptionextends[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")
Thrown when a failure occurs instantiating a decoder. See Also:Serialized Form
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| MediaCodecInfo | codecInfo |
The MediaCodecInfo of the decoder that failed to initialize.
|
| String | diagnosticInfo |
An optional developer-readable diagnostic information string.
|
| 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.
|
| String | mimeType |
The MIME type for which a decoder was being initialized.
|
| boolean | secureDecoderRequired |
Whether it was required that the decoder support a secure output path.
|
Constructors | Constructor | Description |
| --- | --- |
| DecoderInitializationException(Format format, Throwable cause, boolean secureDecoderRequired, int errorCode) | |
| DecoderInitializationException(Format format, Throwable cause, boolean secureDecoderRequired, MediaCodecInfo mediaCodecInfo) | |
-
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[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")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.
-
@Nullable
public final[MediaCodecInfo](MediaCodecInfo.html "class in com.google.android.exoplayer2.mediacodec")codecInfo
The MediaCodecInfo of the decoder that failed to initialize. Null if no suitable decoder was found.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")diagnosticInfo
An optional developer-readable diagnostic information string. May be null.
-
@Nullable
public final[MediaCodecRenderer.DecoderInitializationException](MediaCodecRenderer.DecoderInitializationException.html "class in com.google.android.exoplayer2.mediacodec")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.
-
public DecoderInitializationException([Format](../Format.html "class in com.google.android.exoplayer2")format,
@Nullable[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,
boolean secureDecoderRequired,
int errorCode)
-
public DecoderInitializationException([Format](../Format.html "class in com.google.android.exoplayer2")format,
@Nullable[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,
boolean secureDecoderRequired,[MediaCodecInfo](MediaCodecInfo.html "class in com.google.android.exoplayer2.mediacodec")mediaCodecInfo)