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