nimeet Docs
中文

Callbacks

Event types, callback threading model, idempotency and retry guidance.

Version v1.1.0 · Updated 2026-10-26 · revision 1

Callbacks

Legacy face

IRecordingEngineEventHandler (24 members) is implemented by the host; the defaults are empty bodies, so ignoring a callback is legal. The pipeline raises real events:

MomentCallback
Session reaches recordingonConnectionStateChanged(CONNECTION_STATE_CONNECTED, CONNECTION_CHANGED_JOIN_SUCCESS) → onJoinChannelSuccess
Participant added/removedonUserJoined / onUserInfoUpdated / onUserOffline
While recordingonRecordingStats (real session duration)
Normal endonLeaveChannel(LEAVE_PATH_CODE)
FailureonError(ERROR_CODE_TYPE, STAT_CODE_TYPE)

4.x face

IAgoraMediaRtcRecorderEventHandler (21 members), registered with registerRecorderEventHandle:

MomentCallback
joinChannel successonConnected
Recording startsonRecorderStateChanged(RECORDER_STATE_START=2, RECORDER_REASON_NONE=0)
Recording endsonRecorderStateChanged(RECORDER_STATE_STOP=3) + onRecorderInfoUpdated
FailureonRecorderStateChanged(RECORDER_STATE_ERROR=-1, RECORDER_REASON_WRITE_FAILED=1) + onError
leaveChannelonDisconnected(..., CONNECTION_CHANGED_LEAVE_CHANNEL=5)

Callbacks are invoked synchronously on the calling thread, before joinChannel/leaveChannel/startRecording return.

Generated by the documentation build pipeline · 2026-10-31 01:24:02 UTC · Documentation center v1.1.0.

Content follows the public API definitions.

ni-meet is a self-hosted RTC PaaS with a LiveKit-based media plane (Apache-2.0) and an Agora-compatible API.