正在显示
2 个修改的文件
包含
15 行增加
和
4 行删除
此 diff 太大无法显示。
| @@ -27,7 +27,7 @@ import Server from "config/Server"; | @@ -27,7 +27,7 @@ import Server from "config/Server"; | ||
| 27 | import UTF8 from 'utf-8'; | 27 | import UTF8 from 'utf-8'; |
| 28 | 28 | ||
| 29 | let loger = Loger.getLoger('McuClient'); | 29 | let loger = Loger.getLoger('McuClient'); |
| 30 | -let _sdkInfo = {"version": "v1.12.0.20170504", "author": "www.3mang.com"}; | 30 | +let _sdkInfo = {"version": "v1.13.0.20170504", "author": "www.3mang.com"}; |
| 31 | 31 | ||
| 32 | //APE | 32 | //APE |
| 33 | let _sass; | 33 | let _sass; |
| @@ -183,16 +183,27 @@ export default class MessageEntrance extends Emiter { | @@ -183,16 +183,27 @@ export default class MessageEntrance extends Emiter { | ||
| 183 | this.getDocFullAddress = this._getDocFullAddress.bind(this);//获取文档资源地址 | 183 | this.getDocFullAddress = this._getDocFullAddress.bind(this);//获取文档资源地址 |
| 184 | 184 | ||
| 185 | 185 | ||
| 186 | - //this.setDebuger = this._setDebuger.bind(this);//debug | 186 | + this.setDeviceInfo = this._setDeviceInfo.bind(this);//设置设备信息(麦克风,摄像头等等.....) |
| 187 | this.setMessageDelay = this._setMessageDelay.bind(this);//设置是否延迟消息 | 187 | this.setMessageDelay = this._setMessageDelay.bind(this);//设置是否延迟消息 |
| 188 | this.switchServer = this._switchMcuIpHandler.bind(this);//切换mcu服务器 | 188 | this.switchServer = this._switchMcuIpHandler.bind(this);//切换mcu服务器 |
| 189 | this.switchMediaServer = this._switchMsIpHandler.bind(this);//切换ms服务器 | 189 | this.switchMediaServer = this._switchMsIpHandler.bind(this);//切换ms服务器 |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | - _setDebuger(_data) { | ||
| 193 | - GlobalConfig.isDebuger = _data.isDebuger || true; | 192 | + //设置设备信息 |
| 193 | + _setDeviceInfo(_data) { | ||
| 194 | + loger.log("设置设备信息-->", _data); | ||
| 195 | + if(_data){ | ||
| 196 | + GlobalConfig.videoQuality=_data.videoQuality||2;//画面质量 0-低;1-中;2-高; | ||
| 197 | + GlobalConfig.cameras=_data.cameras||[];//摄像头列表 | ||
| 198 | + GlobalConfig.microphones=_data.microphones||[];//麦克风列表 | ||
| 199 | + GlobalConfig.curCamera=_data.curCamera||'';//当前选择的摄像头 | ||
| 200 | + GlobalConfig.curMicrophone=_data.curMicrophone||'';//当前选择的麦克风 | ||
| 201 | + GlobalConfig.curVideoQuality=_data.curVideoQuality||2;//当前选择的分辨率 | ||
| 202 | + GlobalConfig.soundVolume=_data.soundVolume||100;//音量(0-100) | ||
| 203 | + } | ||
| 194 | } | 204 | } |
| 195 | 205 | ||
| 206 | + //设置消息延迟 | ||
| 196 | _setMessageDelay(_data) { | 207 | _setMessageDelay(_data) { |
| 197 | loger.warn("延迟消息-->", _data); | 208 | loger.warn("延迟消息-->", _data); |
| 198 | if (_data) { | 209 | if (_data) { |
-
请 注册 或 登录 后发表评论