当前位置:网站首页>Why does the remote end receive a check-out notice when the TRTC applet turns off audio and video locally
Why does the remote end receive a check-out notice when the TRTC applet turns off audio and video locally
2022-06-24 06:36:00 【sskingss】
TRTC The applet will automatically switch identities , If there is no local audio and video uplink , Will automatically switch to the identity of the audience ( After all, it is impossible to maintain a large room with tens of thousands of people userList, It's hard to make a loop in a small program )
So in this context , What to do if there is a strict distinction between the anchor scenes ,
keep enable-mic by true, adopt muted Property to set the mute , In this way, the host location will not be changed in the background , The remote end will not receive a check-out notice
this.setData({
pusher: this.setPusherAttributes({muted: true})
})To bind this property to live-pusher On
//page.wxml
<live-pusher
class="pusher"
url="{{pusher.url}}"
mode="{{pusher.mode}}"
autopush="{{pusher.autopush}}"
enable-camera="{{pusher.enableCamera}}"
enable-mic="{{pusher.enableMic}}"
muted="{{!pusher.muted}}" // Here we need to control them separately
enable-agc="{{pusher.enableAgc}}"
enable-ans="{{pusher.enableAns}}"
enable-ear-monitor="{{pusher.enableEarMonitor}}"
auto-focus="{{pusher.enableAutoFocus}}"
zoom="{{pusher.enableZoom}}"
min-bitrate="{{pusher.minBitrate}}"
max-bitrate="{{pusher.maxBitrate}}"
video-width="{{pusher.videoWidth}}"
video-height="{{pusher.videoHeight}}"
beauty="{{pusher.beautyLevel}}"
whiteness="{{pusher.whitenessLevel}}"
orientation="{{pusher.videoOrientation}}"
aspect="{{pusher.videoAspect}}"
device-position="{{pusher.frontCamera}}"
remote-mirror="{{pusher.enableRemoteMirror}}"
local-mirror="{{pusher.localMirror}}"
background-mute="{{pusher.enableBackgroundMute}}"
audio-quality="{{pusher.audioQuality}}"
audio-volume-type="{{pusher.audioVolumeType}}"
audio-reverb-type="{{pusher.audioReverbType}}"
waiting-image="{{pusher.waitingImage}}"
beauty-style="{{pusher.beautyStyle}}"
filter="{{pusher.filter}}"
bindstatechange="_pusherStateChangeHandler"
bindnetstatus="_pusherNetStatusHandler"
binderror="_pusherErrorHandler"
bindbgmstart="_pusherBGMStartHandler"
bindbgmprogress="_pusherBGMProgressHandler"
bindbgmcomplete="_pusherBGMCompleteHandler"
bindaudiovolumenotify="_pusherAudioVolumeNotify"
/>Anchor's enable-mic The control of can always be true, And then through muted Controls whether to uplink , Audience's enableMic and enableCamera Can never false
边栏推荐
- Analysis on the influence of "network security policy issued successively" on Enterprises
- text classification with RNN
- Multi objective Optimization Practice Based on esmm model -- shopping mall
- Distributed cache breakdown
- When easynvs is deployed on the project site, easynvr cannot view the corresponding channel. Troubleshooting
- WordPress pill applet build applet from zero to one [pagoda panel environment installation]
- Spirit information development log (1)
- The 2021 Tencent digital ecology conference landed in Wuhan, waiting for you to come to the special session of wechat with low code
- The difference between ArrayList and LinkedList and the principle of using scene locality
- Web automation test (3): Selenium basic course of web function automation test
猜你喜欢

C语言学生管理系统——可检查用户输入合法性,双向带头循环链表
Oracle case: ohasd crash on AIX

云上本地化运营,东非第一大电商平台Kilimall的出海经

leetcode:84. 柱状图中最大的矩形

puzzle(019.1)Hook、Gear

leetcode:85. 最大矩形
Fault analysis | using --force to batch import data leads to partial data loss
![跳跃游戏II[贪心练习]](/img/e4/f59bb1f5137495ea357462100e2b38.png)
跳跃游戏II[贪心练习]
![Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.](/img/2c/d04f5dfbacb62de9cf673359791aa9.png)
Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.

Enter the software test pit!!! Software testing tools commonly used by software testers software recommendations
随机推荐
What is Druid
Free and easy-to-use screen recording and video cutting tool sharing
Urban Waterlogging Monitoring and early warning system
MySQL concept - View
Analysis on the influence of "network security policy issued successively" on Enterprises
Spirit information development log (1)
When should I use Apache Druid
Analysis of official template of wechat personnel recruitment management system (III)
Produce kubeconfig with permission control
I want to say "three no" to digital transformation
How to solve the problem that after Tencent cloud sets static DNS, restarting the machine becomes dynamic DNS acquisition
How to build a website with a domain name? Is the domain name very cheap
Cloud native high availability and Disaster Recovery Series (I): pod break up scheduling
Tencent security release data security compliance capability map
C语言学生管理系统——可检查用户输入合法性,双向带头循环链表
Source code analysis of current limiting component uber/ratelimit
How to open a hidden file
Why the computer can't start
When the VPC main network card has multiple intranet IP addresses, the server cannot access the network internally, but the server can be accessed externally. How to solve this problem
Coding and codesign: make design and development easier