Skip to main content

Description

The channel-level event callback interface. Inherit from it, override the callback methods, and register it with IRTCChannel::setEventHandler.

Inheritance

None

Callbacks

Callbacks are registered per channel: one IRTCChannelEvent instance is bound to one IRTCChannel, so none of the callbacks carry a channelId parameter (the channel-level callbacks on the old IRTCEngineEvent did). You can bind the same instance to multiple channels; in that case you need to tell the channels apart yourself. You must register it before IRTCChannel::join(); otherwise you don’t receive onJoinChannel—it’s called back before join() returns.

Join channel success callback

Parameters Note: callbacks are registered per channel (IRTCChannel::setEventHandler), so channelId is no longer passed back. To tell channels apart, use IRTCChannel::getChannelId().

Channel status update callback

Parameters

User joined callback

Parameters

User info update callback

Parameters

User stream added callback

Parameters

User stream updated callback

Parameters

User stream removed callback

Parameters

User left callback

Parameters

Custom message callback

Parameters
Parameters
Parameters
Parameters
Parameters

Frame timeout callback

Parameters

Audio level callback

Parameters

Device status change callback

Parameters

Share target not found callback

Parameters

Disconnected callback

Parameters

Reconnected callback

Parameters

Reconnecting callback

Parameters

Recording status change callback

Parameters