This commit is contained in:
parent
d1cdd99ae1
commit
d9c346f486
|
|
@ -178,7 +178,9 @@ const Meeting: React.FC = () => {
|
|||
speakers.forEach((item: any) => {
|
||||
if (item.uid) {
|
||||
let itemUser = res.find((row: any) => row.uid === String(item.uid))
|
||||
itemUser.volumeNumber = (item.volume / 255) * 100;
|
||||
if (itemUser) {
|
||||
itemUser.volumeNumber = (item.volume / 255) * 100;
|
||||
}
|
||||
} else {
|
||||
let me = res.find((row: any) => row.uid === userInfo.uid)
|
||||
if (me) {
|
||||
|
|
|
|||
|
|
@ -81,13 +81,13 @@ 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) //指定播放设备
|
||||
if (setting.playBackVolume) agora.setPlaybackDeviceVolume(setting.playBackVolume) // 设置播放设备音量
|
||||
if (setting.ecordingDeviceId) agora.setRecordingDevice(setting.ecordingDeviceId) // 设置音频采集设备
|
||||
if (setting.ecordingVolume) agora.setRecordingDeviceVolume(setting.ecordingVolume) // 设置音频设备音量
|
||||
rtcEngine.enableAudioVolumeIndication(200, 3, false)
|
||||
}
|
||||
}, 1000);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue