MediaCodecRenderer.DecoderInitializationException


class MediaCodecRenderer.DecoderInitializationException : Exception


Thrown when a failure occurs instantiating a decoder.

Summary

Public constructors

DecoderInitializationException(
    format: Format!,
    cause: Throwable?,
    secureDecoderRequired: Boolean,
    errorCode: Int
)
DecoderInitializationException(
    format: Format!,
    cause: Throwable?,
    secureDecoderRequired: Boolean,
    mediaCodecInfo: MediaCodecInfo!
)

Public properties

MediaCodecInfo?

The MediaCodecInfo of the decoder that failed to initialize.

String?

An optional developer-readable diagnostic information string.

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.

String?

The MIME type for which a decoder was being initialized.

Boolean

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

Public constructors

DecoderInitializationException

DecoderInitializationException(
    format: Format!,
    cause: Throwable?,
    secureDecoderRequired: Boolean,
    errorCode: Int
)

DecoderInitializationException

DecoderInitializationException(
    format: Format!,
    cause: Throwable?,
    secureDecoderRequired: Boolean,
    mediaCodecInfo: MediaCodecInfo!
)

Public properties

codecInfo

val codecInfo: MediaCodecInfo?

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

diagnosticInfo

val diagnosticInfo: String?

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

fallbackDecoderInitializationException

val fallbackDecoderInitializationException: 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. Null if there was no fallback decoder or no suitable decoders were found.

mimeType

val mimeType: String?

The MIME type for which a decoder was being initialized.

secureDecoderRequired

val secureDecoderRequired: Boolean

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