当前位置:网站首页>TRTC applet custom message
TRTC applet custom message
2022-06-24 06:12:00 【sskingss】
Currently on the applet side SEI news , Only receiving but not sending is supported
about native The message sent by the terminal , The applet side receives the data through 2012 Event code for , The relevant receiving codes are as follows
stay live-player There is an event binding on , And set up enable-recv-message The attribute is true The abbreviation here is as follows :
<live-player enable-recv-message="{{true}}" bindstatechange="_playerStateChange"></live-player>_playerStateChange(event) {
if(event.detail.code == 2012){
console.log(' Custom message ', event.detail.message)
}
}Use trtc-wx When , You can do it by yourself _playerStateChange Add this logic to , Or through REMOTE_STATE_UPDATE This event monitors , Judge event.detail.code Is it 2012 To distinguish between .
边栏推荐
- [in depth sharing] Devops evolution path -- Realizing R & D digital transformation based on four vertical and four horizontal Devops system
- Oceanus practice - develop MySQL CDC to es SQL jobs from 0 to 1
- Semantic web, semantic web, linked data and knowledge map
- Tencent (host security) was listed in the market guide for cloud workload protection platform released by Gartner
- How to solve the enterprise network security problem in the mixed and multi cloud era?
- Summary of basic notes of C language (2)
- Introduction of frequency standard comparison measurement system
- How do individuals register domain names? What are the precautions for individual domain name registration?
- Intranet environment request Tencent cloud 3.0 API details
- How about the XYZ domain name? What are the advantages over other domain names?
猜你喜欢

What is the difference between a white box test and a black box test
![[fault announcement] one stored procedure brings down the entire database](/img/7c/e5adda73a077fe4b8f04b59d1e0e1e.jpg)
[fault announcement] one stored procedure brings down the entire database

One line of keyboard

Solution to the 39th weekly game of acwing

ServiceStack. Source code analysis of redis (connection and connection pool)

Technology is a double-edged sword, which needs to be well kept
随机推荐
Progress update | optimization and upgrading of shard nodes
How to apply for a domain name? How much does it cost to apply for a domain name?
MySQL forgets root password cracking root password cracking all user passwords, shell script
How about the XYZ domain name? What are the advantages over other domain names?
Flutter - date of birth calculation age tool class
Wireshark grabs the RTSP stream of easynvr without displaying RTSP. Solution
MySQL optimization
At the trusted cloud conference, Tencent securely unlocked a number of new certifications!
How to select cloud game platforms? Just pay attention to two points
Royal treasure: an analysis of SQL algebra optimization
Detailed explanation of IPv6 theory and concept
Get the short video! Batch download of Kwai video (with source code)
What are the domain name registration query tools? What should be paid attention to when registering a domain name
Ups and esxi realize automatic shutdown after power failure
Correct way to update Fedora image Yum source to Tencent cloud Yum source
[fault announcement] one stored procedure brings down the entire database
Micro build low code supports Excel to import data source
Several relations to be clarified in the process of digital transformation: stock and increment
A rail grinder for rail transit
Domain name, resolution, SSL certificate product selection