-
}
@@ -202,8 +203,8 @@ const VideoComponents = () => {
style={{
color: 'white'
}}>
- 解释说明:如未检测到摄像头请插拔后重试
-
+ 解释说明:如未检测到摄像头请插拔后重试
+
}
title=""
>
@@ -211,20 +212,20 @@ const VideoComponents = () => {
color: 'white',
cursor: 'pointer',
marginRight: '10px'
- }}/>
+ }} />
@@ -260,29 +261,14 @@ const AudioComponents = () => {
const {
playBackList,
ecordingList,
- playBackItem,
- ecordingItem,
ecordingVolume
} = await agora.getAudioMediaList();
- if ((!setting.ecordingDeviceId && ecordingItem.deviceId) || (!(ecordingList.find((item: any) => item.deviceId === setting.ecordingDeviceId)) && ecordingItem.deviceId)) {
- setting.ecordingDeviceId = ecordingItem.deviceId
- }
- if ((!setting.playBackDeviceId && playBackItem.deviceId) || (!(playBackList.find((item: any) => item.deviceId === setting.playBackDeviceId)) && playBackItem.deviceId)) {
- setting.playBackDeviceId = playBackItem.deviceId
- }
- if (!ecordingList.length) {
- setting.ecordingDeviceId = ''
- }
- if (!playBackList.length) {
- setting.playBackDeviceId = ''
- }
if (!setting.ecordingVolume) {
setting.ecordingVolume = ecordingVolume;
}
if (!setting.playBackVolume) {
setting.playBackVolume = 127;
}
- storage.setItem('setting', JSON.stringify(setting))
setAudioDeviceManager({
...audioDeviceManager,
playBackList: playBackList.map((row: any) => {
@@ -297,8 +283,8 @@ const AudioComponents = () => {
label: row.deviceName
}
}),
- playBackItem: setting.playBackDeviceId ? setting.playBackDeviceId : playBackItem.deviceId || null,
- ecordingItem: setting.ecordingDeviceId ? setting.ecordingDeviceId : ecordingItem.deviceId || null,
+ playBackItem: setting.playBackDeviceId,
+ ecordingItem: setting.ecordingDeviceId,
ecordingVolume: setting.ecordingVolume,
playBackVolume: setting.playBackVolume,
autoEcordingVolume: setting.autoEcordingVolume
@@ -314,16 +300,16 @@ const AudioComponents = () => {