Products
Solutions
Developers
Demo
Pricing
Company
All Blog

Quickly Implement Publishing and Subscribing to Media Streams in Interactive Scenarios Based on RTC Engine for Web

20 min read
Jan 15, 2025

This document is a quick integration guide that specifically introduces how developers can integrate the RTC engine component into their applications to achieve the functionality of publishing and subscribing to media streams. Through concise steps and sample code, it guides developers to complete the integration of the client in a short time, and quickly implement the required functions with a complete UI interface, providing intuitive and practical references for client development.

0. General Guide

https://trtc.io/document/39386

This document is a beginner's guide for Tencent Real-Time Communication (TRTC), providing a clear onboarding path for developers who wish to integrate TRTC product features. It covers product introduction, product experience, SDK integration, and other guidance. Reading this document will help developers quickly implement TRTC product functionalities.

1. Introduction to TRTC Basic Concepts

https://trtc.io/document/37714?&

This document aims to introduce some basic concepts that developers may encounter when using the Real-Time Audio and Video (TRTC) service, such as SDKAppID, room, etc. Reading this document can help developers quickly understand the key concepts of TRTC, laying the foundation for smooth integration and use of video call functionality.

2. Quickly Run Related Demos

https://trtc.io/demo/homepage/#/detail?scene=trtc

3. Implementation Guide for Specific Features

https://trtc.io/zh/document/35607?platform=web&product=rtcengine&menulabel=sdk

4. Implementation Guide for Specific Features

RTMP streaming is a traditional streaming protocol, while WHIP is a more modern protocol based on WebRTC. WHIP offers lower latency and better real-time performance, as well as support for a wider range of devices and platforms. However, being a newer technology means that its stability may not be as robust as RTMP. We recommend prioritizing the use of the RTMP protocol.

  • OBS streaming RTMP to TRTC

https://trtc.io/zh/document/52171?product=rtcengine&menulabel=serverfeaturesapis

  • OBS streaming WHIP to TRTC

https://trtc.io/zh/document/55633?product=rtcengine&menulabel=serverfeaturesapis

5. Console Usage Guide

https://trtc.io/document/39077?product=consoleguide

This document primarily introduces the creation and management process of Tencent RTC (Real-Time Communication) applications. It provides detailed instructions on how to create a new application in the console, including steps such as selecting a product, setting the application name, and choosing the data storage region. The document also describes how to view and manage created applications, including viewing basic application information, SDKAppID, secret key, and other important data. Additionally, it briefly introduces application version types, service status, and some related configuration options. Overall, this is a user-oriented operation guide aimed at helping users effectively use the Tencent RTC console to manage their real-time audio and video projects.

6. Client-side Pull Streaming Viewing Demo

https://web.sdk.qcloud.com/trtc/webrtc/v5/test/qer/str-room-id/cloud-quick-js/index.html?role=audience&strRoomId=【Enter Room Number】

https://trtc.io/document/35166?product=call&platform=web

This document introduces the user authentication mechanism of Tencent RTC service, focusing on explaining the concept and generation method of UserSig. It provides detailed instructions on how to generate UserSig at different stages of development and offers sample code in various programming languages. For developers, this authentication mechanism enhances security, protects resources and privacy, while providing flexibility and multi-language support, helping to control costs and simplify the development process.

8. Client Demo or SDK Usage Guide (Integration)

https://trtc.io/document/59649?platform=web&product=rtcengine&menulabel=sdk

This document is a quick integration guide that specifically introduces how developers can integrate the RTC engine component into their applications to achieve the functionality of publishing and subscribing to media streams. Through concise steps and sample code, it guides developers to complete the integration of the client in a short time, and quickly implement the required functions with a complete UI interface, providing intuitive and practical references for client development.

9. Privacy Terms

https://trtc.io/document/48827?product=privacysla

This privacy policy addresses the privacy concerns most important to developers, such as whether user information, usage data, and other data will be stored by TRTC, and how it will be utilized. It helps developers understand how users' personal information will be processed and protected when integrating and using video call functionality.

10. Data Processing and Security Agreement

https://trtc.io/document/48828?product=privacysla

This agreement provides developers with clear data processing and security guidelines, covering the issues of most concern to developers, such as whether user data passing through the TRTC service provider can be guaranteed not to leak during transmission, and how TRTC's own data security capabilities are. The content in this agreement helps ensure the compliance and security of video call functionality.

11. Purchase Guide Section

Prepaid Package Guide

Currently, TRTC's billing adopts a prepaid package + postpaid model, which can bring you flexible cost management and budget control, ensuring that you can effectively estimate and control expenses when using the service. For details, please see the Billing Overview document.

Prepaid Packages

TRTC's prepaid packages are divided into Starter and Official packages.

The Starter package helps users launch projects at an extremely low cost. The RTC Engine Start plan package costs only $9.9/month, enjoying a 80% discount. Its features are comparable to the standard version and can meet the functional requirements of most scenarios. To purchase, please visit the Starter Package Purchase Guide.

The Official package is suitable for customers who are already familiar with our products and wish to continue using them. It includes various plans and usually contains higher resource quotas and priority support to meet users' long-term needs and more complex project requirements. To purchase, please visit the Official Package Purchase Guide.

For specific rules, please see the billing documents:

 Starter Package

 Official Package

Postpaid Guide

TRTC defaults to prepaid package billing. When service usage cannot be deducted from a package or exceeds the prepaid package balance, billing will be based on your actual business usage according to the postpaid model. TRTC's postpaid model includes billing items such as audio and video duration, cloud recording and recording delivery, stream mixing and transcoding, and stream pushing. For detailed billing rules, please see the latter part of the Billing Overview document

If you have any questions or need assistance online, our support team is always ready to help. Please feel free to Contact us or join us on Telegram or Discord.

Want to build a similar app or platform? Get your free 10,000 minutes now

Get Started for Free