on Encoder Error
abstract fun onEncoderError(codecName: String, isHardware: Boolean, method: String, status: String, statusNumber: Int, @Nullable exception: Exception, consecutiveErrors: Int)
Parameters
codec Name
e.g. "H264", "VP8"
is Hardware
true if hardware encoder
method
e.g. "encode", "initEncode"
status
e.g. "ERROR", "NO_OUTPUT", "EXCEPTION"
status Number
enum number (-1 for ERROR, 1 for NO_OUTPUT, etc.)
exception
non-null only when the encoder threw an exception
consecutive Errors
running count of consecutive negative-status errors (factory-level, survives encoder recreation)