Skip to content

Commit 36378ad

Browse files
author
Igor Khomenko
committed
added a switch for dev/prod users for webrtc sample
1 parent 1849a46 commit 36378ad

File tree

5 files changed

+63
-8
lines changed

5 files changed

+63
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "1.17.1",
4+
"version": "2.0",
55
"homepage": "http://quickblox.com/developers/Javascript",
66
"main": "quickblox.js",
77
"license": "MIT",

js/qbConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
var config = {
9-
version: '1.17.1',
9+
version: '2.0',
1010
creds: {
1111
appId: '',
1212
authKey: '',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "1.17.1",
4+
"version": "2.0",
55
"homepage": "http://quickblox.com/developers/Javascript",
66
"main": "js/qbMain.js",
77
"license": [

quickblox.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/webrtc/config.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ var CONFIG = {
1616
}
1717
};
1818

19+
var USE_DEV_USERS = true;
20+
21+
// dev users
22+
//
23+
if(USE_DEV_USERS){
24+
1925
var QBUsers = [
2026
{
2127
id: 6970356,
@@ -47,6 +53,55 @@ var QBUsers = [
4753
}
4854
];
4955

56+
// prod users
57+
//
58+
}else{
59+
var QBUsers = [
60+
{
61+
id: 5395743,
62+
login: 'webuser111',
63+
password: 'webuser111',
64+
full_name: 'User 1',
65+
colour: 'FD8209'
66+
},
67+
{
68+
id: 5395747,
69+
login: 'webuser112',
70+
password: 'webuser112',
71+
full_name: 'User 2',
72+
colour: '11a209'
73+
},
74+
{
75+
id: 5681538,
76+
login: 'webuser113',
77+
password: 'webuser113',
78+
full_name: 'User 3',
79+
colour: '11a2a9'
80+
},
81+
{
82+
id: 5719859,
83+
login: 'webuser114',
84+
password: 'webuser114',
85+
full_name: 'User 4',
86+
colour: '51c209'
87+
},
88+
{
89+
id: 5719860,
90+
login: 'webuser115',
91+
password: 'webuser115',
92+
full_name: 'User 5',
93+
colour: '511209'
94+
},
95+
{
96+
id: 5719866,
97+
login: 'webuser116',
98+
password: 'webuser116',
99+
full_name: 'User 6',
100+
colour: '01e209'
101+
}
102+
];
103+
}
104+
50105
var MESSAGES = {
51106
'login': 'Login as any user on this computer and another user on another computer.',
52107
'create_session': 'Creating a session...',

0 commit comments

Comments
 (0)