tencent cloud

Tencent Real-Time Communication

Release Notes and Announcements
Release Notes
Recent Product Announcement
TRTC Live (TUILiveKit) Product Launch Announcement
TRTC Conference Official Editions Launched
The commercial version of Conference is coming soon
Terms and Conditions Applicable to $9.9 Starter Package
Rules for the "First Subscription $100 Discount" Promotion
Announcement on the Start of Beta Testing for Multi-person Audio and Video Conference
TRTC Call Official Editions Launched
License Required for Video Playback in New Version of LiteAV SDK
TRTC to Offer Monthly Packages
Product Introduction
Overview
Concepts
Features
Strengths
Use Cases
Performance Statistics
Tencent RTC Quickplay: Experience Ultimate Real-Time Audio and Video Interaction!
Purchase Guide
Billing Overview
Free Minutes
Monthly subscription
Pay-as-you-go
TRTC Overdue and Suspension Policy
FAQs
Refund Instructions
User Tutorial
Free Demo
Call
Overview
Activate the Service
Run Demo
Integration
Offline Call Push
Conversational Chat
On-Cloud Recording
AI Noise Reduction
UI Customization
Calls integration to Chat
Additional Features
No UI Integration
Server APIs
Client APIs
Solution
ErrorCode
Release Notes
FAQs
Conference
Overview(TUIRoomKit)
Activate the Service (TUIRoomKit)
Run Demo(TUIRoomKit)
Integration(TUIRoomKit)
Screen Sharing (TUIRoomKit)
Schedule a meeting (TUIRoomKit)
In-meeting Call (TUIRoomKit)
UI Customization(TUIRoomKit)
Virtual Background (TUIRoomKit)
Conference Control (TUIRoomKit)
Cloud Recording (TUIRoomKit)
AI Noise Reduction (TUIRoomKit)
In-Conference Chat (TUIRoomKit)
Robot Streaming (TUIRoomKit)
Enhanced Features (TUIRoomKit)
Client APIs (TUIRoomKit)
Server APIs (TUIRoomKit)
FAQs (TUIRoomKit)
Error Code (TUIRoomKit)
SDK Update Log (TUIRoomKit)
Live
Billing of Video Live Component
Overview
Activating the Service (TUILiveKit)
Run Demo
No UI Integration
UI Customization
Live Broadcast Monitoring
Video Live Streaming
Voice Chat Room
Advanced Features
Client APIs
Server APIs
Error Codes
Release Notes
FAQs
RTC Engine
Activate Service
SDK Download
API Examples
Usage Guidelines
API Reference Manual
Advanced Features
AI Integration
Overview
Configure MCP Server
Install Skills
Integration Guide
FAQ
RTC RESTFUL API
History
Introduction
API Category
Room Management APIs
Stream mixing and relay APIs
On-cloud recording APIs
Data Monitoring APIs
Pull stream Relay Related interface
Web Record APIs
AI Service APIs
Cloud Slicing APIs
Cloud Moderation APIs
Making API Requests
Call Quality Monitoring APIs
Usage Statistics APIs
Data Types
Appendix
Error Codes
Console Guide
Application Management
Package Management
Usage Statistics
Monitoring Dashboard
Development Assistance
Solution
Real-Time Chorus
FAQs
Migration Guide
Billing
Features
UserSig
Firewall Restrictions
How to Downsize Installation Package
Android and iOS
Web
Flutter
Electron
TRTCCalling for Web
Audio and Video Quality
Others
Legacy Documentation
RTC RoomEngine SDK(Old)
Integrating TUIRoom (Web)
Integrating TUIRoom (Android)
Integrating TUIRoom (iOS)
Integrating TUIRoom (Flutter)
Integrating TUIRoom (Electron)
TUIRoom APIs
On-Cloud Recording and Playback (Old)
RTC Analytics Monthly Packages (Previous Version)
Protocols and Policies
Compliance
Security White Paper
Notes on Information Security
Service Level Agreement
Apple Privacy Policy: PrivacyInfo.xcprivacy
TRTC Policy
Privacy Policy
Data Processing And Security Agreement
Glossary

TUIRoomObserver

PDF
Focus Mode
Font Size
Last updated: 2023-11-14 16:34:53

TUIRoomEngine Event Callback

onError

Error Event.
OnError onError = (TUIError errorCode, String message) {}
Parameter
Type
Description
errorCode
TUIError
Error Code
message
String
Error Message

onKickedOffLine

Other terminals login and get kicked off event.
OnKickedOffLine onKickedOffLine = (String message) {}
Parameter
Type
Description
message
String
Kicked out description

onUserSigExpired

User credential timeout event.
OnUserSigExpired onUserSigExpired = () {}

onRoomNameChanged

Room name change event.
OnRoomNameChanged onRoomNameChanged = (String roomId, String roomName) {}
Parameter
Type
Description
roomId
String
Room ID
roomName
String
Room Name

onAllUserMicrophoneDisableChanged

Inside the room, all users' mic is disabled event.
OnAllUserMicrophoneDisableChanged onAllUserMicrophoneDisableChanged = (String roomId, bool isDisable) {}
Parameter
Type
Description
roomId
String
Room ID
isDisable
bool
Whether it is disabled

onAllUserCameraDisableChanged

All users' Camera in the Room are disabled event.
OnAllUserCameraDisableChanged onAllUserCameraDisableChanged = (String roomId, bool isDisable) {}
Parameter
Type
Description
roomId
String
Room ID
isDisable
bool
Whether it is disabled

onSendMessageForAllUserDisableChanged

Inside the room, all users' text message sending is disabled event.
OnSendMessageForAllUserDisableChanged onSendMessageForAllUserDisableChanged = (String roomId, bool isDisable) {}
Parameter
Type
Description
roomId
String
Room ID
isDisable
bool
Whether it is disabled

onRoomDismissed

Room dissolution event.
OnRoomDismissed onRoomDismissed = (String roomId) {}
Parameter
Type
Description
roomId
String
Room ID

onKickedOutOfRoom

Kick out of the room event
OnKickedOutOfRoom onKickedOutOfRoom = (String roomId, String message) {}
Parameter
Type
Description
roomId
String
Room ID
message
String
Description of being kicked out

onRoomSpeechModeChanged

Mic control mode changes in the room.
OnRoomSpeechModeChanged onRoomSpeechModeChanged = (String roomId, TUISpeechMode speechMode) {}
Parameter
Type
Description
roomId
String
Room ID
speechMode
Mic control mode

onRemoteUserEnterRoom

Remote user enters the room event.
OnRemoteUserEnterRoom onRemoteUserEnterRoom = (String roomId, TUIUserInfo userInfo) {}
Parameter
Type
Description
roomId
String
Room ID
userInfo
User information

onRemoteUserLeaveRoom

Remote user leaves the room event.
OnRemoteUserLeaveRoom onRemoteUserLeaveRoom = (String roomId, TUIUserInfo userInfo) {}
Parameter
Type
Description
roomId
String
Room ID
userInfo
User information

onUserRoleChanged

User role changes event.
OnUserRoleChanged onUserRoleChanged = (String userId, TUIRole role) {}
Parameter
Type
Description
userId
String
User ID
role
TUIRole
User Role

onUserVideoStateChanged

User Video status changes event.
OnUserVideoStateChanged onUserVideoStateChanged = (String userId, TUIVideoStreamType streamType, bool hasVideo, TUIChangeReason reason) {}
Parameter
Type
Description
userId
String
User ID
streamType
Streams type
hasVideo
bool
Whether there are streams
reason
Reason for streams change

onUserAudioStateChanged

User Audio status changes event.
OnUserAudioStateChanged onUserAudioStateChanged = (String userId, bool hasAudio, TUIChangeReason reason) {}
Parameter
Type
Description
userId
String
User ID
hasAudio
bool
Whether there are Audio streams
reason
Reason for Audio streams change

onUserVoiceVolumeChanged

User volume change event.
OnUserVoiceVolumeChanged onUserVoiceVolumeChanged = (Map<String, int> volumeMap) {}
Parameter
Type
Description
volumeMap
Map
User Volume Map
key: userId
value: Used for carrying the volume size of all speaking users, Value range 0 - 100

onSendMessageForUserDisableChanged

User text message sending ability changes event.
OnSendMessageForUserDisableChanged onSendMessageForUserDisableChanged = (String roomId, String userId, bool isDisable) {}
Parameter
Type
Description
roomId
String
Room ID
userId
String
User ID
isDisable
bool
Whether it is prohibited to send text messages.

onUserNetworkQualityChanged

User network status change event.
OnUserNetworkQualityChanged onUserNetworkQualityChanged = (Map<String, TUINetwork> networkMap) {}
Parameter
Type
Description
networkMap
Map
User Network Status Map
key: userId
value: Network Condition

onUserScreenCaptureStopped

Screen Sharing stopped Callback event.
OnUserScreenCaptureStopped onUserScreenCaptureStopped = (int reason) {}
Parameter
Type
Description
reason
int
Stop reason:
0: User actively stops
1: Screen window closing causes the stop
2: Screen Sharing display screen status change (such as interface being unplugged, Projection mode change, etc.)

onRoomMaxSeatCountChanged

Maximum number of mic slots changes event in the room (only effective in meeting type rooms).
OnRoomMaxSeatCountChanged onRoomMaxSeatCountChanged = (String roomId, int maxSeatCount) {}
Parameter
Type
Description
roomId
String
Room ID
maxSeatCount
int
Maximum number of mic slots in the room

onSeatListChanged

Mic slot list changes event.
OnSeatListChanged onSeatListChanged = (List<TUISeatInfo> seatList, List<TUISeatInfo> seatedList, List<TUISeatInfo> leftList) {}
Parameter
Type
Description
seatList
The latest user list on the mic, including newly on mic users
seatedList
Newly on mic user list
leftList
Newly off mic user list

onKickedOffSeat

Received the event of user being kicked off mic.
OnKickedOffSeat onKickedOffSeat = (String userId) {}
Parameter
Type
Description
userId
String
Operate Kick-out of the (Host/Administrator) User ID

onRequestReceived

Received request message event.
OnRequestReceived onRequestReceived = (TUIRequest request) {}
Parameter
Type
Description
request
Request content

onRequestCancelled

Received request cancellation event.
OnRequestCancelled onRequestCancelled = (String requestId, String userId) {}
Parameter
Type
Description
requestId
String
Request ID
userId
String
Cancel signaling user ID

onReceiveTextMessage

Received ordinary text message event.
OnReceiveTextMessage onReceiveTextMessage = (String roomId, TUIMessage message) {}
Parameter
Type
Description
roomId
String
Room ID
message
Message content

onReceiveCustomMessage

Received custom message event.
OnReceiveCustomMessage onReceiveCustomMessage = (String roomId, TUIMessage message) {}
Parameter
Type
Description
roomId
String
Room ID
message
Message content


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback