onEncoderError

abstract fun onEncoderError(codecName: String, isHardware: Boolean, method: String, status: String, statusNumber: Int, @Nullable exception: Exception, consecutiveErrors: Int)

Parameters

codecName

e.g. "H264", "VP8"

isHardware

true if hardware encoder

method

e.g. "encode", "initEncode"

status

e.g. "ERROR", "NO_OUTPUT", "EXCEPTION"

statusNumber

enum number (-1 for ERROR, 1 for NO_OUTPUT, etc.)

exception

non-null only when the encoder threw an exception

consecutiveErrors

running count of consecutive negative-status errors (factory-level, survives encoder recreation)