onError

fun onError(error: JSONObject)

Called when an error occurs during the meeting.

The error object typically contains "code" and "message" fields describing the error.

Code Example:


override fun onError(error: JSONObject) {
    val code = error.optInt("code")
    val message = error.optString("message")
    Log.e("Meeting", "Error $code: $message")
}

Parameters

error

a JSONObject containing error details. For the complete list of error codes, see getErrorCodes and the Error Events Guide.