Home  >  Article  >  WeChat Applet  >  Tencent real-time audio and video TRTC

Tencent real-time audio and video TRTC

大鹏
大鹏Original
2021-05-29 15:46:333982browse

In recent years, live streaming e-commerce and Internet celebrity economy have become more and more popular. Major platforms have launched their own live streaming e-commerce functions. For small and medium-sized platforms, the threshold for building a live streaming system is relatively high. Using clouds opened by big manufacturers Service has become the first choice. This article hopes to introduce the main functions of Tencent Real-time Audio and Video Service in a short space, sort out your understanding of TRTC, and facilitate novices to quickly understand and then build their own live broadcast e-commerce platform.

TRTCThe full name (Tencent Real-Time Communication) is Tencent’s real-time audio and video service. It is positioned as a cloud service that solves real-time communication. Its main function is based on the Internet. Receives, processes, forwards and saves large-traffic audio and video streaming data, mainly used in live broadcast, video conferencing and other scenarios; provides some simple IM functions around live broadcast; provides demo and easy-to-use SDK to facilitate rapid access by different terminals; allows User-defined collection and rendering data sources.

Receive, process, forward, save

The processing of large traffic and large data volume has always been the exclusive capability of large manufacturers due to the high threshold and high initial investment. Since audio and video traffic needs to transmit a lot of information, even if the PV and UV are not high, it still requires a large traffic consumption. Cloud services solve this problem. TRTC provides a cloud streaming function for multiple streaming scenarios such as the host's Lianmai PC. By setting the resolution, bit rate, and aspect ratio, the image quality and fluency can be balanced to obtain a better live broadcast experience. Video screen rotation and scaling can be set through the interface. TRTC's live broadcast can support 100,000 people online, and more can open a bypass on the console and push the stream to cloud live broadcast (CSS) or CDN to achieve unlimited number of live broadcasts. TRTC live broadcast recordings are saved to cloud on-demand, and you need to activate the cloud on-demand service and enable TRTC cloud recording.

IM

#TRTC provides simple signaling operations, such as kicking, banning, and muting. You can use TRTC’s custom signaling interface sendCustomCmdMsg. Developers themselves Define the corresponding control signaling, and the call party that receives the control signaling can perform the corresponding operation. For example, kicking someone means defining a kicking signaling, and the user who receives this signaling will exit the room on his own.

Demo and SDK

The document provides demos for multiple terminals, including basically all commonly used terminals. As long as the network is open, it only takes a few minutes from downloading to running. After running through the Demo, you can roughly understand the main functions of TRTC. Then you need to integrate it into your own system, find the corresponding SDK, and integrate it according to your own code specifications.

Custom collection

There are limitations to using the SDK to integrate the live broadcast function. It can only be used by devices with integrated camera and microphone in mobile phones. If there is no camera, it is just a local video, or you need to implement beauty effects before streaming, then you need to use the custom collection function. You can turn off the SDK's own camera acquisition and image processing through interface settings.

Other third-party services

Third-party beauty effects: TRTC supports basic beauty functions, which may not meet business requirements. Third-party beauty effects can also be used. , there are currently many beauty special effects SDK suppliers;

Cloud function: input existing recorded videos or online streaming media, custom collection can play local videos, use cloud functions to use online streaming media, use More flexible;

Voice content review service: The Beijing Shumei Times service used provides voice content review;

Okay, the basic functions have been introduced. For more detailed operations, please refer to Tencent Cloud. document.

Cloud services have greatly reduced the research and development costs of small and medium-sized enterprises, and they can also use cloud services to quickly build experimental businesses. All enterprises can use the best technology to realize their own digitalization.

The above is the detailed content of Tencent real-time audio and video TRTC. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn