This commit is contained in:
yj 2024-08-15 16:37:34 +08:00
parent 3abeb759c4
commit d25a6f7d88
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ const agora = {
},
// 加入频道
joinChannel: () => {
rtcEngine.enableAudioVolumeIndication(100, 1, true)
rtcEngine.joinChannel(option.token, option.channelId, option.uid, {
autoSubscribeAudio: true,//设置是否自动订阅所有音频流
autoSubscribeVideo: true,//设置是否自动订阅所有视频流