Web
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>