Back to Exoplayer

MediaCodecRenderer.DecoderInitializationException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.DecoderInitializationException.html

latest5.8 KB
Original Source

Package com.google.android.exoplayer2.mediacodec

Class MediaCodecRenderer.DecoderInitializationException


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

Field Summary

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. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | DecoderInitializationException​(Format format, Throwable cause, boolean secureDecoderRequired, int errorCode) | | | DecoderInitializationException​(Format format, Throwable cause, boolean secureDecoderRequired, MediaCodecInfo mediaCodecInfo) | |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

mimeType

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.

- 

secureDecoderRequired

public final boolean secureDecoderRequired

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

- 

codecInfo

@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.

- 

diagnosticInfo

@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.

- 

fallbackDecoderInitializationException

@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.

Constructor Detail

- 

DecoderInitializationException

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)
- 

DecoderInitializationException

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)