正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -214,8 +214,8 @@ export default class MessageEntrance extends Emiter { | @@ -214,8 +214,8 @@ export default class MessageEntrance extends Emiter { | ||
| 214 | 214 | ||
| 215 | GlobalConfig.cameras=_data.cameras||[]; | 215 | GlobalConfig.cameras=_data.cameras||[]; |
| 216 | GlobalConfig.microphones=_data.microphones||[]; | 216 | GlobalConfig.microphones=_data.microphones||[]; |
| 217 | - GlobalConfig.videoQuality=_data.videoQuality||0; | ||
| 218 | - GlobalConfig.curVideoQuality=_data.curVideoQuality||0; | 217 | + GlobalConfig.videoQuality=parseInt(_data.videoQuality); |
| 218 | + GlobalConfig.curVideoQuality=parseInt(_data.curVideoQuality); | ||
| 219 | GlobalConfig.micGain=_data.micGain||50; | 219 | GlobalConfig.micGain=_data.micGain||50; |
| 220 | GlobalConfig.speakerVolume=_data.speakerVolume||50; | 220 | GlobalConfig.speakerVolume=_data.speakerVolume||50; |
| 221 | GlobalConfig.micCode=_data.micCode||0; | 221 | GlobalConfig.micCode=_data.micCode||0; |
| @@ -475,7 +475,7 @@ export default class MessageEntrance extends Emiter { | @@ -475,7 +475,7 @@ export default class MessageEntrance extends Emiter { | ||
| 475 | //视频质量相关设置 | 475 | //视频质量相关设置 |
| 476 | GlobalConfig.fps = _data.fps || 15; | 476 | GlobalConfig.fps = _data.fps || 15; |
| 477 | GlobalConfig.gop = _data.gop || 3; | 477 | GlobalConfig.gop = _data.gop || 3; |
| 478 | - GlobalConfig.videoQuality = _data.videoQuality || 2; | 478 | + GlobalConfig.videoQuality = parseInt(_data.videoQuality); |
| 479 | 479 | ||
| 480 | //是否自动开始(身份是host的时候才用到的) | 480 | //是否自动开始(身份是host的时候才用到的) |
| 481 | GlobalConfig.isAutoStartClass = _data.autoRecord || 0; | 481 | GlobalConfig.isAutoStartClass = _data.autoRecord || 0; |
| @@ -331,7 +331,7 @@ GlobalConfig.microphones=[];//麦克风列表 | @@ -331,7 +331,7 @@ GlobalConfig.microphones=[];//麦克风列表 | ||
| 331 | 331 | ||
| 332 | GlobalConfig.curCamera="";//当前选择的摄像头 | 332 | GlobalConfig.curCamera="";//当前选择的摄像头 |
| 333 | GlobalConfig.curMicrophone='';//当前选择的麦克风 | 333 | GlobalConfig.curMicrophone='';//当前选择的麦克风 |
| 334 | -GlobalConfig.curVideoQuality=0;//当前分辨率 | 334 | +GlobalConfig.curVideoQuality=2;//当前分辨率 |
| 335 | GlobalConfig.micGain=50;//音量(0-80) | 335 | GlobalConfig.micGain=50;//音量(0-80) |
| 336 | GlobalConfig.speakerVolume=50;//扬声器音量(0-80) | 336 | GlobalConfig.speakerVolume=50;//扬声器音量(0-80) |
| 337 | GlobalConfig.micCode=0;//麦克风模式 | 337 | GlobalConfig.micCode=0;//麦克风模式 |
-
请 注册 或 登录 后发表评论