interface NERtcCallback { onClientRoleChange(oldRole,
newRole): void; onDisconnect(reason): void; onJoinChannel(result,
channelId,
elapsed,
uid): void; onLeaveChannel(result): void; onRecvSEIMsg(userId,
data,
dataSize): void; onUserAudioStart(uid): void; onUserAudioStop(uid): void; onUserJoined(uid,
extraInfo?): void; onUserLeave(uid,
reason,
extraInfo?): void; onUserVideoStart(uid,
maxProfile): void; onUserVideoStop(uid): void; } Methods
onClientRoleChange
- onClientRoleChange(oldRole, newRole): void
Parameters
- oldRole: number
- newRole: number
Returns void
onDisconnect
- onDisconnect(reason): void
Returns void
onJoinChannel
- onJoinChannel(result, channelId, elapsed, uid): void
Parameters
- result: number
- channelId: bigint
- elapsed: bigint
- uid: bigint
Returns void
onLeaveChannel
- onLeaveChannel(result): void
Returns void
onRecvSEIMsg
- onRecvSEIMsg(userId, data, dataSize): void
Parameters
- userId: bigint
- data: Uint8Array
- dataSize: number
Returns void
onUserAudioStart
- onUserAudioStart(uid): void
Returns void
onUserAudioStop
- onUserAudioStop(uid): void
Returns void
onUserJoined
- onUserJoined(uid, extraInfo?): void
Returns void
onUserLeave
- onUserLeave(uid, reason, extraInfo?): void
Returns void
onUserVideoStart
- onUserVideoStart(uid, maxProfile): void
Parameters
- uid: bigint
- maxProfile: number
Returns void
onUserVideoStop
- onUserVideoStop(uid): void
Returns void