小程序里面禁止视频mutelocal 官方demo的onMute方法应该在那个地方调用

onMute() {
console.log(this.data.muted,‘00000’)
if (!this.data.muted) {
this.client.muteLocal(‘video’, (e) => {
console.log(‘muteLocal success’, e)
}, err => {
console.log(err)
});
} else {
this.client.unmuteLocal(‘audio’, () => {
console.log(‘unmuteLocal success’)
}, err => {
console.log(err)
});
}
this.setData({
muted: !this.data.muted
})
},
这个样子是禁用视频流 纯音频流直播吗

对的,可以参考 muteLocal 的 API 说明文档:
https://docs.agora.io/cn/Interactive%20Broadcast/API%20Reference/wechat/interfaces/client.html#mutelocal