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

Definitions of Key Types

PDF
Focus Mode
Font Size
Last updated: 2025-02-26 14:17:50

callParams

In the Tencent RTC Console, call extension parameters such as room number, call invitation timeout, offline push custom content, etc.
Parameter
Type
Required
Description
roomId
RoomId
No
Room ID, for details, please refer to RoomId.
timeout
Number
No
Call timeout, default: 40 seconds, unit: seconds. timeout = 0 means no timeout
userData
String
No
Custom extension fields when initiating a call
offlinePushInfo
No
Custom offline message push parameters
chatGroupId
String
No
chat group Id.

RoomId

Room ID, divided into String type and Number type.
Parameter
Type
Required
Description
strRoomId
String
No
Room ID, String type
intRoomId
Number
No
Room ID, String type

OfflinePushInfo

Parameter
Type
Required
Description
title
String
No
offlinepush notification title
desc
String
No
offlinepush notification description
ignoreIOSBadge
boolean
No
Ignore badge count for offline push (only for iOS), if set to true, the message will not increase the unread count of the app icon on the iOS receiver's side.
iOSSound
String
No
Offline push sound setting (only for iOS). When
sound = IOS_OFFLINE_PUSH_NO_SOUND, there will be no sound played when the message is received. When sound = IOS_OFFLINE_PUSH_DEFAULT_SOUND, the system sound will be played when the message is received. If you want to customize the iOSSound, you need to link the audio file into the Xcode project first, and then set the audio file name (with extension) to the iOSSound.
androidSound
String
No
Offline push sound setting (only for Android, supported by IMSDK 6.1 and above). Only Huawei and Google phones support setting sound prompts. For Xiaomi phones, please refer to: Xiaomi custom ringtones. In addition, for Google phones, in order to set sound prompts for FCM push on Android 8.0 and above systems, you must call setAndroidFCMChannelIDto set the channelID for it to take effect.
androidOPPOChannelID
String
No
Set the channel ID for OPPO phones with Android 8.0 and above systems.
androidVIVOClassification
Number
No
Classification of VIVO push messages (deprecated interface, VIVO push service will optimize message classification rules on April 3, 2023. It is recommended to use setAndroidVIVOCategory to set the message category). 0: Operational messages, 1: System messages. The default value is 1.
androidXiaoMiChannelID
String
No
Set the channel ID for Xiaomi phones with Android 8.0 and above systems.
androidFCMChannelID
String
No
Set the channel ID for google phones with Android 8.0 and above systems.
androidHuaWeiCategory
String
No
Classification of Huawei push messages, please refer to:
isDisablePush
boolean
No
Whether to turn off push notifications (default is on).
iOSPushType
No
iOS offline push type,default is APNs

IOSOfflinePushType

iOS offline push type
Parameter
Description
APNs
APNs
VoIP
VoIP

MediaType

Call media type
Parameter
Description
Audio
Audio call
Video
Video call

Camera

Front or Back Camera
Parameter
Description
Front
Front camera
Back
Rear camera

AudioPlaybackDevice

Audio route
Parameter
Description
Earpiece
Audio route is earpiece
Speakerphone
Audio route is Speakerphone

FillMode

If the aspect ratio of the video display area is not equal to that of the video image, you need to specify the fill mode:
Parameter
Description
Fill
Fill mode: the video image will be centered and scaled to fill the entire display area, where parts that exceed the area will be cropped. The displayed image may be incomplete in this mode.
Fit
Fit mode: the video image will be scaled based on its long side to fit the display area, where the short side will be filled with black bars. The displayed image is complete in this mode, but there may be black bars.

Rotation

We provides rotation angle setting APIs for local and remote images. The following rotation angles are all clockwise.
Parameter
Description
Rotation_0
No rotation
Rotation_90
Clockwise rotation by 90 degrees
Rotation_180
Clockwise rotation by 180 degrees
Rotation_270
Clockwise rotation by 0 degrees

Resolution

Video resolution
Parameter
Description
Resolution_640_360
Aspect ratio: 16:9;resolution: 640x360;recommended bitrate: 500kbps
Resolution_640_480
Aspect ratio: 4:3;resolution: 640x480;recommended bitrate: 600kbps
Resolution_960_540
Aspect ratio: 16:9;resolution: 960x540;recommended bitrate: 850kbps
Resolution_960_720
Aspect ratio: 4:3;resolution: 960x720;recommended bitrate: 1000kbps
Resolution_1280_720
Aspect ratio: 16:9;resolution: 1280x720;recommended bitrate: 1200kbps
Resolution_1920_1080
Aspect ratio: 16:9;resolution: 1920x1080;recommended bitrate: 2000kbps

ResolutionMode

Video aspect ratio mode
Parameter
Description
Landscape
Landscape resolution, such as Resolution.Resolution_640_360 + ResolutionMode.Landscape = 640 × 360.
Portrait
Portrait resolution, such as Resolution.Resolution_640_360 + ResolutionMode.Portrait = 360 × 640.

Help and Support

Was this page helpful?

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

Feedback