This commit is contained in:
parent
027b777a0f
commit
01c642c0e9
|
|
@ -81,7 +81,6 @@ const agora = {
|
|||
setTimeout(async () => {
|
||||
storage.setItem('setting', JSON.stringify(setting))
|
||||
if (bool) {
|
||||
await rtcEngine.enableAudioVolumeIndication(200, 3, false)
|
||||
const setting = await JSON.parse(storage.getItem('setting') as string)
|
||||
if (setting.videoDeviceId) agora.setVideoDeviceManager(setting.videoDeviceId) //指定摄像头头采集设备
|
||||
if (setting.playBackDeviceId) agora.setPlaybackDevice(setting.playBackDeviceId) //指定播放设备
|
||||
|
|
@ -187,6 +186,7 @@ const agora = {
|
|||
},
|
||||
// 加入频道
|
||||
joinChannel: () => {
|
||||
// rtcEngine.enableAudioVolumeIndication(200, 10, true)
|
||||
rtcEngine.joinChannel(option.token, option.channelId, option.uid, {
|
||||
autoSubscribeAudio: true,//设置是否自动订阅所有音频流
|
||||
autoSubscribeVideo: true,//设置是否自动订阅所有视频流
|
||||
|
|
|
|||
Loading…
Reference in New Issue