当前位置:网站首页>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 .
边栏推荐
- Summary of basic notes of C language (III)
- Event delegation
- How to recover data by splicing database fragments
- Coding and codesign: make design and development easier
- Progress update | optimization and upgrading of shard nodes
- Collateral damage from DDoS and hacktivism
- Water conservancy RTU telemetry terminal
- Why do the new generation of highly concurrent programming languages like go and rust hate shared memory?
- The joint network security laboratory of runlian technology and Tencent security was officially unveiled
- Is the prospect of cloud computing in the security industry worth being optimistic about?
猜你喜欢

One line of keyboard

Technology is a double-edged sword, which needs to be well kept

What is the difference between a white box test and a black box test

ServiceStack. Source code analysis of redis (connection and connection pool)
![[fault announcement] one stored procedure brings down the entire database](/img/7c/e5adda73a077fe4b8f04b59d1e0e1e.jpg)
[fault announcement] one stored procedure brings down the entire database

Solution to the 39th weekly game of acwing
随机推荐
Mysql database backup under Windows Environment
EEG microstate as a continuous phenomenon
Koa middleware implementation
Malicious software packages are found in pypi code base. Tencent security threat intelligence has been included. Experts remind coders to be careful of supply chain attacks
Overview of related concepts of social network analysis
Inferior administrator and black heart Haikang
How to apply for a domain name? How much does it cost to apply for a domain name?
Network review
How about the VIP domain name? Does the VIP domain name need to be filed after registration?
How to bind the most formal domain name? What are the precautions for binding domain names?
One line of keyboard
Domain name, resolution, SSL certificate product selection
Project deployment for learning 3D visualization from scratch
ZABBIX enterprise distributed monitoring
Spirit information development log (4)
Figure 1 understand Tencent reassurance platform
Tensorflow daily essay (I)
How to register the company domain name mailbox? Is the operation process complicated
Analysis of official template of wechat personnel recruitment management system (III)
A power modem that can adjust the bending range of cable