on Error
Called when the SDK detects an error locally or the server reports one for this meeting.
Fired on the main thread.
The error object contains:
"code"— numeric error code, matching a constant in getErrorCodes"name"— the error-code constant name, e.g."START_RECORDING_FAILED""message"— human-readable reason; for server-reported errors this is the server's specific message when it sends one
Code Example:
public void onError(JSONObject error) {
int code = error.optInt("code");
String name = error.optString("name");
String message = error.optString("message");
Log.e("Meeting", "Error " + code + " (" + name + "): " + message);
}
Content copied to clipboard
Parameters
error
a JSONObject with "name", "code" and "message". For the complete list of error codes, see getErrorCodes and the Error Events Guide.