About this project

TRTC Web SDK is Tencent Cloud's browser-side real-time audio/video SDK, published on npm as trtc-sdk-v5. It targets WebRTC use cases such as 1-to-1 and group video calls, voice calls and voice rooms, interactive live streaming with host/audience roles, video conferencing with screen sharing, and online education or collaboration apps. Integration is JavaScript-first: install via npm or yarn, or load trtc.js directly. A typical flow creates an instance with TRTC.create(), joins a room via enterRoom() using sdkAppId, userId, userSig and a room id, then starts local video and audio with startLocalVideo() and startLocalAudio(). The README stresses that userSig should be generated on an application server and that SDKSecretKey must not be exposed in frontend code. The repository bundles runnable demos rather than only the SDK: a React 18 + TypeScript + Vite quick demo (recommended starting point), a vanilla JavaScript demo, Vue 2 and Vue 3 + TypeScript demos, plus a samples directory covering features such as screen sharing and live streaming. SDK v5.x files live in the SDK directory, while v4.x is kept as a legacy version not recommended for new projects. Documented capabilities include cross-browser support (Chrome 56+, Edge 80+, Firefox 56+, Safari 11+, iOS Safari 11+, Opera 46+), device and permission detection, network quality evaluation, device hot-plug handling, custom capture and rendering, multi-user video with small streams, cloud mixing and CDN streaming, watermarking and video mixing. A plugin layer covers audio mixing, beauty effects, virtual background, AI noise reduction, voice changing, face detection, small-stream auto switching, and real-time transcription/translation. The README also positions the SDK alongside Tencent RTC's UI kits (TUICallKit, TUIRoomKit, TUILiveKit) and other platform SDKs for Android, iOS, Flutter, Electron and React Native. Note that the SDK itself is a hosted cloud service client: using it requires Tencent RTC credentials and services, so it is not a self-hosted media server. The README cites latency and uptime figures as vendor claims.