优化加载速度
This commit is contained in:
parent
e5b3cd72a6
commit
c4bc3dd59a
|
|
@ -31,7 +31,11 @@ const agora = {
|
||||||
});
|
});
|
||||||
if (bool) {
|
if (bool) {
|
||||||
const setting = JSON.parse(storage.getItem('setting') as string)
|
const setting = JSON.parse(storage.getItem('setting') as string)
|
||||||
if (setting.videoDeviceId) agora.setVideoDeviceManager(setting.videoDeviceId) //通过设备 ID 指定视频采集设备。
|
if (setting.videoDeviceId) {
|
||||||
|
agora.setVideoDeviceManager(setting.videoDeviceId) //通过设备 ID 指定视频采集设备。
|
||||||
|
} else {
|
||||||
|
agora.setVideoDeviceManager(rtcEngine.getVideoDeviceManager().getDevice())
|
||||||
|
}
|
||||||
if (setting.playBackDeviceId) agora.setPlaybackDevice(setting.playBackDeviceId) //指定播放设备
|
if (setting.playBackDeviceId) agora.setPlaybackDevice(setting.playBackDeviceId) //指定播放设备
|
||||||
if (setting.playBackVolume) agora.setPlaybackDeviceVolume(setting.playBackVolume) // 设置播放设备音量
|
if (setting.playBackVolume) agora.setPlaybackDeviceVolume(setting.playBackVolume) // 设置播放设备音量
|
||||||
if (setting.ecordingDeviceId) agora.setRecordingDevice(setting.ecordingDeviceId) // 设置音频采集设备
|
if (setting.ecordingDeviceId) agora.setRecordingDevice(setting.ecordingDeviceId) // 设置音频采集设备
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue