GlobalConfig.js
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
* 全局数据管理
* */
import Loger from 'Loger';
let loger = Loger.getLoger('GlobalConfig');
class GlobalConfig {
constructor () {
}
static setDebugData (_deBugData){
this.isDebug=true;
this.deBugData=_deBugData;
}
static getConfInfo (){
if(this.isDebug){
//这几个属性是sass验证完成之后返回的,启动MCU的时候需要
this .deBugData.MCUServerIP=this.MCUServerIP;
this .deBugData.MCUServerPort=this.MCUServerPort;
this .deBugData.maxVideoChannels=this.maxVideoChannels;
this .deBugData.maxAudioChannels=this.maxAudioChannels;
this .deBugData.maxMediaChannels=this.maxMediaChannels;
return this .deBugData;
}else {
return{
"siteId": this.siteId,
"confId": this.confId,
"h5Module": this.h5Module,
"nodeId": this.nodeId,
"topNodeID":this.topNodeID,
"userRole": this.userRole,
"role": this.role,
"isHost": this.isHost,
"classRole": this.classRole,
"userId": this.userId,
"userName": this.userName,
"password": this.password,
"userType": this.userType,
"passwordRequired": this.passwordRequired,
"md5": this.md5,
"msType": this.msType,
"portal": this.portal,
"mcuDelay":this.mcuDelay,
"MCUServerIP": this.MCUServerIP,
"MCUServerPort":this.MCUServerPort,
"maxVideoChannels": this.maxVideoChannels,
"maxAudioChannels": this.maxAudioChannels,
"maxMediaChannels": this.maxMediaChannels
}
}
}
}
GlobalConfig.siteId="gust";
GlobalConfig.confId=1653304953;//课堂号=classId=meetingNumber 之后统一修改为classId
GlobalConfig.nodeId=1483947664;//随机生成
GlobalConfig.topNodeID=101;//现在固定值,还不知道是做什么用
GlobalConfig.userRole="normal";
GlobalConfig.role=1;
GlobalConfig.isHost=false;
GlobalConfig.classRole=0;
GlobalConfig.userId=0;
GlobalConfig.userName="";
GlobalConfig.password="";
GlobalConfig.userType=8;
GlobalConfig.h5Module=0;
GlobalConfig.passwordRequired=false;
GlobalConfig.md5="";
GlobalConfig.msType=1;
GlobalConfig.mcuDelay=3000;
GlobalConfig.portal="112.126.80.182:80";
GlobalConfig.ip="112.126.80.182";
GlobalConfig.port="80";
GlobalConfig.MCUServerIP="114.215.195.70";
GlobalConfig.MCUServerPort=9003;
GlobalConfig.maxVideoChannels=1;
GlobalConfig.maxAudioChannels=1;
GlobalConfig.maxMediaChannels=2;
GlobalConfig.isDebug=false;
GlobalConfig.deBugData={};
GlobalConfig.meetingParam={};
export default GlobalConfig;