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 codecInfoMediaCodecInfo?

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

diagnosticInfo

val diagnosticInfoString?

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

fallbackDecoderInitializationException

val fallbackDecoderInitializationExceptionMediaCodecRenderer.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 mimeTypeString?

The MIME type for which a decoder was being initialized.

secureDecoderRequired

val secureDecoderRequiredBoolean

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