当前位置:网站首页>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
边栏推荐
- How fast? Good province!
- Analysis and treatment of easydss flash back caused by system time
- Authoritative recognition! Tencent cloud data security Zhongtai was selected as the 2021 pioneer practice case
- What are the categories of edge computing devices
- Deploy DNS server using dnsmasq
- Web address domain name IP query method, what is the use of domain name
- 项目Demo
- Analysis of official template of wechat personnel recruitment management system (I)
- puzzle(019.1)Hook、Gear
- How does go limit the flow of services?
猜你喜欢

A cigarette of time to talk with you about how novices transform from functional testing to advanced automated testing

目标5000万日活,Pwnk欲打造下一代年轻人的“迪士尼乐园”

解读AI机器人产业发展的顶层设计
Fault analysis | using --force to batch import data leads to partial data loss

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

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

leetcode:剑指 Offer 26:判断t1中是否含有t2的全部拓扑结构

Enter the software test pit!!! Software testing tools commonly used by software testers software recommendations

Manual for automatic testing and learning of anti stepping pits, one for each tester
Oracle case: ohasd crash on AIX
随机推荐
Easycvr is cascaded to easygbs through gb28181 protocol. Notes on video channel failure
What transmission modes does the IOT data gateway support
How to apply 5g smart pole to smart highway
记录--关于virtual studio2017添加报表控件的方法--Reportview控件
【二叉树】——二叉树中序遍历
Surveying and mapping principle of GIS coordinate system: geoid / datum / reference ellipsoid /epsg/sri/wkt
Introduction to QWidget attribute table in QT Designer
Basic knowledge of wechat applet cloud development literacy chapter (I) document structure
When should I use Apache Druid
What is Druid
Implementation of code rate and frame rate statistics in easyplayer RTSP player
go 断点续传
Tencent security release data security compliance capability map
Free and easy-to-use screen recording and video cutting tool sharing
Station B collapsed. Let's talk to the injured programmers
leetcode:85. 最大矩形
On BOM and DOM (1): overview of BOM and DOM
How long will it take for us to have praise for Shopify's market value of 100 billion yuan?
Papamelon 11 number of calculation permutation [combinatorics]
Domain name, resolution, SSL certificate FAQ