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

Web

PDF
Focus Mode
Font Size
Last updated: 2024-11-14 11:48:05

1. Basics

What browsers does the TRTC Web SDK support?

How do I test my audio/video devices before making a call?

How do I test my current network quality?

I can use the TRTC web SDK in a local development environment but not after it is deployed online. What should I do?

To ensure data security and protect users’ privacy, browsers allow access to the mic and camera only in secure environments, for example, when https, localhost, or file:// is used for access. Because HTTP is not secure, browsers block access to media devices when HTTP is used.
If you can use the SDK in a local development environment but cannot capture data from the camera or mic after deploying it to the web, check whether your webpage is deployed using HTTP. If so, use HTTPS instead and make sure you have a valid HTTPS certificate.
For more information, see Domain Name and Protocol Support.

Does the web SDK support the dual-stream mode, watermarking?

You can refer to Enable Dual-Channel Mode, and Enable Watermarking to enable the advanced features.

What are the known issues of WebRTC?

What is the main/sub video stream?

1. TRTC has a main video stream (main stream) and an sub video stream (sub stream).
2. The camera is published through the main stream, and the screen sharing is published through the sub stream.
3. The main video stream includes: big stream and small stream. By default, TRTC.startRemoteVideo plays the big stream, and the small stream can be played through the small parameter. Refer to: Optimize Multi-Person Video Calls.




2. Capturing and Publishing

Why can I turn on the camera or microphone?

Refer to DEVICE_ERROR.

Why am I unable to publish or play streams on some mobile browsers?

If your browser is not listed in the above document, you can open the TRTC compatibility check page with the browser to test whether it fully supports WebRTC.

Can I change the video profile(resolution, frameRate, bitrate)?

Why does the camera support capturing 1080p, but the captured resolution is less than 1080p?

This situation is generally due to the fact that the camera is occupied by low-resolution ahead of time, resulting in the SDK not being able to capture the target resolution.
Solution: Check the business side logic, if the camera is captured in advance, please release the camera in time when it is no longer in use.

Can I modify the style of screen sharing pop-up window in the TRTC Web SDK?

No. The style of screen sharing is controlled by browsers and cannot be modified.

How do I capture system audio during screen sharing in the TRTC Web SDK?

Refer to Screen Sharing.

How do I switch the camera/mic?

Refer to Media Device.

How to detect camera added and removed?

Refer to Media Device.

What should I do if the error "Permission denied" occurs when I use the TRTC web SDK in iframes?

To use WebRTC in iframes, you need to add the following attribute to the iframe tag to obtain the permissions needed. Mic, camera, and screen sharing permissions:
<iframe allow="microphone; camera; display-capture;">

3. Playing

Why is there video but no audio during a call?

It may be because of the browser’s autoplay policy, which causes the “PLAY_NOT_ALLOWED” error. To solve the problem, please see Handle Autoplay Restriction.

Why does the sound output change from speaker to handset after microphone being captured?

On Android, there are usually multiple microphones, and the label list is: ['default', 'Speakerphone', 'Headset earpiece'].
If you do not specify the microphone in trtc.startLocalAudio, the browser default microphone may be the Headset earpiece and the sound will come out of the handset.
If you need to play out through the speaker, you need to specify the microphone with the label 'Speakerphone'.

4. Others

How to get current volume of microphone?

Refer to Audio Volume.

What triggers the trtc.on(TRTC.EVENT.KICKED_OUT) event?

The event is triggered when a user is removed from a room, for example, when the same user ID is used to log in from different devices or when the RESTful API RemoveUser is called to remove a user. For more information, see KICKED_OUT
Note:
Repeated login is not allowed by the SDK (it may cause call exceptions) and should be avoided at the business layer.

Causion for Using Vue 3

When the Vue3 framework is used, it is necessary to use the markRaw interface to mark the trtc instance to avoid the conversion of trtc into the Proxy object by Vue, which may cause some unexpected problems.
import { markRaw } from 'vue';
const trtc = markRaw(TRTC.create());

Why mobile phone get hot when make a multi-person video call

Help and Support

Was this page helpful?

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

Feedback