tencent cloud

Tencent Real-Time Communication

Web

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-06-05 10:43:17
AI 번역
This document describes how to import TRTC Web SDK into your project.




Supported Platforms

The TRTC Web SDK supports all major browsers such as Chrome, Edge, Firefox, Safari, and Opera. For a list of browsers supported by TRTC, see Supported Platforms.

Import SDK to your project

By npm

1. Use npm to install trtc-sdk-v5 package in your project.
npm install trtc-sdk-v5 --save
2. Import the module in the project script.
import TRTC from 'trtc-sdk-v5';

By script

1. Download SDK file trtc.js from GitHub.
2. Add the following code to your webpage:
<script src="trtc.js"></script>

Enter Room

After import SDK to your project, you can use TRTC to enter a room, please refer to: Enter Room.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백