李勇

新增设置设备信息的接口 (摄像头、麦克风等等音视频相关信息)

此 diff 太大无法显示。
... ... @@ -27,7 +27,7 @@ import Server from "config/Server";
import UTF8 from 'utf-8';
let loger = Loger.getLoger('McuClient');
let _sdkInfo = {"version": "v1.12.0.20170504", "author": "www.3mang.com"};
let _sdkInfo = {"version": "v1.13.0.20170504", "author": "www.3mang.com"};
//APE
let _sass;
... ... @@ -183,16 +183,27 @@ export default class MessageEntrance extends Emiter {
this.getDocFullAddress = this._getDocFullAddress.bind(this);//获取文档资源地址
//this.setDebuger = this._setDebuger.bind(this);//debug
this.setDeviceInfo = this._setDeviceInfo.bind(this);//设置设备信息(麦克风,摄像头等等.....)
this.setMessageDelay = this._setMessageDelay.bind(this);//设置是否延迟消息
this.switchServer = this._switchMcuIpHandler.bind(this);//切换mcu服务器
this.switchMediaServer = this._switchMsIpHandler.bind(this);//切换ms服务器
}
_setDebuger(_data) {
GlobalConfig.isDebuger = _data.isDebuger || true;
//设置设备信息
_setDeviceInfo(_data) {
loger.log("设置设备信息-->", _data);
if(_data){
GlobalConfig.videoQuality=_data.videoQuality||2;//画面质量 0-低;1-中;2-高;
GlobalConfig.cameras=_data.cameras||[];//摄像头列表
GlobalConfig.microphones=_data.microphones||[];//麦克风列表
GlobalConfig.curCamera=_data.curCamera||'';//当前选择的摄像头
GlobalConfig.curMicrophone=_data.curMicrophone||'';//当前选择的麦克风
GlobalConfig.curVideoQuality=_data.curVideoQuality||2;//当前选择的分辨率
GlobalConfig.soundVolume=_data.soundVolume||100;//音量(0-100)
}
}
//设置消息延迟
_setMessageDelay(_data) {
loger.warn("延迟消息-->", _data);
if (_data) {
... ...