Skip to content

Sprint 1 #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Sep 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d5d75f6
join
dimaspirit Mar 2, 2016
2883ed8
build 'join'
dimaspirit Mar 2, 2016
11e51ed
Merge remote-tracking branch 'remotes/origin/develop' into develop.QB…
dimaspirit Mar 7, 2016
5964957
stay
dimaspirit Mar 10, 2016
7a6d09d
middle
dimaspirit Mar 14, 2016
fe5a5cf
middle
dimaspirit Mar 15, 2016
baccde7
middle
dimaspirit Mar 18, 2016
694bc22
test
dimaspirit Mar 21, 2016
0cc53b8
per-finish
dimaspirit Mar 21, 2016
6e27ae4
- add 'Change local stream';
dimaspirit Mar 22, 2016
1ad061c
universal deviceID
dimaspirit Mar 23, 2016
2e55e60
add limits for input fields
dimaspirit Mar 23, 2016
e20bc6c
rename a text in tpl
dimaspirit Mar 23, 2016
65fbb9f
add test to a method 'QB.webrtc.getMediaDevices'
dimaspirit Mar 23, 2016
5577206
grammar
dimaspirit Mar 23, 2016
368af9a
Merge pull request #122 from QuickBlox/develop.QBWEBSDK-240
dimaspirit Mar 23, 2016
f1e87ac
rewrite pattern for tag, should starts with [aA-zZ]
dimaspirit Mar 29, 2016
906f5b3
rework wrong regexp
dimaspirit Mar 29, 2016
113a04b
https://quickblox.atlassian.net/browse/QBWEBSDK-249
dimaspirit Mar 29, 2016
b2ea60c
https://quickblox.atlassian.net/browse/QBWEBSDK-250
dimaspirit Mar 30, 2016
0523a7a
https://quickblox.atlassian.net/browse/QBWEBSDK-251
dimaspirit Mar 30, 2016
b30ab4a
Merge pull request #124 from QuickBlox/develop.bug.QBWEBSDK-247
dimaspirit Apr 1, 2016
bce314a
- wrong update of board
dimaspirit Apr 1, 2016
e70f295
QBWEBSDK-255
dimaspirit Apr 1, 2016
4775a74
QBWEBSDK-254
dimaspirit Apr 1, 2016
bede9d1
rework join
dimaspirit Apr 5, 2016
1ec23ad
middle
dimaspirit Apr 11, 2016
ff080a0
QBWEBSDK-261
dimaspirit Apr 12, 2016
f56e574
Add the github helpers files (#128)
dimaspirit Apr 12, 2016
ab09f26
QBWEBSDK-257
dimaspirit Apr 13, 2016
0651ba4
Merge remote-tracking branch 'remotes/origin/develop' into develop.sp…
dimaspirit Apr 13, 2016
6005024
Update the github helpers (#129)
dimaspirit Apr 14, 2016
7929192
fix txt errors
dimaspirit Apr 15, 2016
8321794
Merge pull request #127 from QuickBlox/develop.sprint1
IegorKozakov Apr 15, 2016
5bbe22f
Bug fixing for sprint 1 (#131)
dimaspirit Apr 22, 2016
08c62be
Bug fixing for sprint 1 (continue) (#133)
dimaspirit Apr 26, 2016
2dc1ba1
Merge branch 'gh-pages' into develop
May 16, 2016
694f303
add minif. version
May 16, 2016
5bdb8ac
change js to src folder
May 16, 2016
4d5bbc3
Added onReconnectFailedListener
Vladlukhanin May 19, 2016
efb7d0e
merged
May 27, 2016
0a7008f
Merge branch 'gh-pages' into develop
May 27, 2016
f188476
Fix bugs for Sprint 1
dimaspirit Jun 2, 2016
15d08ea
fix a blocked bug
dimaspirit Jun 2, 2016
3fc09fd
Fixed bugs for sprint 1 (#141)
dimaspirit Jun 10, 2016
c8242e7
Fixed Bugs for Sprint 1
dimaspirit Jun 24, 2016
280a953
merged
Jul 14, 2016
1dde9bd
merged
Jul 14, 2016
0f6e926
tests for pushes updates
Jul 14, 2016
e08845f
merged with master
Jul 19, 2016
2635366
add comment to getMediaDevices
dimaspirit Aug 1, 2016
a5efd31
merged tests
Aug 4, 2016
b38fcbe
merged
Aug 4, 2016
7d42816
Merge remote-tracking branch 'remotes/origin/gh-pages' into develop
dimaspirit Aug 30, 2016
331fe6d
upd version
dimaspirit Sep 7, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
"inject",
"expect",
"spyOn",

"QB",
"CONFIG",
"QBApp",
"QBUsers"
"QBUsers",
"Promise"
]
}
}
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function (grunt) {
},
all: {
files: {
'quickblox.js': ['js/qbMain.js']
'quickblox.js': ['src/qbMain.js']
}
}
},
Expand All @@ -45,7 +45,7 @@ module.exports = function (grunt) {
},

watch: {
files: ['js/*.js', 'js/modules/*.js', 'js/modules/webrtc/*.js'],
files: ['src/*.js', 'src/modules/*.js', 'src/modules/webrtc/*.js'],
tasks: ['browserify', 'notify:browserify', 'uglify', 'notify:uglify'],
options: {
spawn: false,
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "quickblox",
"description": "QuickBlox JavaScript SDK",
"version": "2.1.5",
"version": "2.2.0",
"homepage": "https://quickblox.com/developers/Javascript",
"main": "quickblox.js",
"license": "Apache 2.0",
Expand Down Expand Up @@ -32,7 +32,7 @@
"ignore": [
"**/.*",
"examples",
"js",
"src",
"lib",
"node_modules",
"plugins",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "quickblox",
"description": "QuickBlox JavaScript SDK",
"version": "2.1.5",
"version": "2.2.0",
"homepage": "https://quickblox.com/developers/Javascript",
"main": "js/qbMain.js",
"main": "src/qbMain.js",
"license": [
{
"type": "Apache 2.0",
Expand Down
20 changes: 10 additions & 10 deletions quickblox.min.js

Large diffs are not rendered by default.

274 changes: 41 additions & 233 deletions samples/webrtc/config.js
Original file line number Diff line number Diff line change
@@ -1,235 +1,43 @@
;(function(window) {
/**
* Add parameter to url search
* for switch users groups
*
* Possible options:
* https://examples.com?users=prod
* https://examples.com?users=dev
* https://examples.com - for qa by default
*/
var usersQuery = _getQueryVar('users');

var CONFIG = {
debug: true,
webrtc: {
answerTimeInterval: 30,
dialingTimeInterval: 5,
disconnectTimeInterval: 30,
statsReportTimeInterval: 5
}
};

/**
* QBAppDefault for qa and dev
* QBAppProd for production
*/
var QBAppProd = {
appId: 92,
authKey: 'wJHdOcQSxXQGWx5',
authSecret: 'BTFsj7Rtt27DAmT'
},
QBAppDefault = {
appId: 28287,
authKey: 'XydaWcf8OO9xhGT',
authSecret: 'JZfqTspCvELAmnW'
};

/** set QBApp */
var QBApp = usersQuery === 'qa' ? QBAppDefault : usersQuery === 'dev' ? QBAppDefault : QBAppProd;

var QBUsersQA = [
{
id: 5395743,
login: 'webuser111',
password: 'webuser111',
full_name: 'User 1',
colour: 'FD8209'
},
{
id: 5395747,
login: 'webuser112',
password: 'webuser112',
full_name: 'User 2',
colour: '11a209'
},
{
id: 5681538,
login: 'webuser113',
password: 'webuser113',
full_name: 'User 3',
colour: '11a2a9'
},
{
id: 5719859,
login: 'webuser114',
password: 'webuser114',
full_name: 'User 4',
colour: '51c209'
},
{
id: 5719860,
login: 'webuser115',
password: 'webuser115',
full_name: 'User 5',
colour: '511209'
},
{
id: 5719866,
login: 'webuser116',
password: 'webuser116',
full_name: 'User 6',
colour: '01e209'
}
],
QBUsersDev = [
{
id: 6970356,
login: 'dev_user_1',
password: 'dev_user_1',
full_name: 'User 1',
colour: 'ffaa00'
},
{
id: 6970368,
login: 'dev_user_2',
password: 'dev_user_2',
full_name: 'User 2',
colour: '0890ff'
},
{
id: 6970375,
login: 'dev_user_3',
password: 'dev_user_3',
full_name: 'User 3',
colour: 'ff03a6'
},
{
id: 6970379,
login: 'dev_user_4',
password: 'dev_user_4',
full_name: 'User 4',
colour: '60e27a'
}
],
QBUsersProd = [
{
id: 2436251,
login: 'webrtc_user1',
password: 'x6Bt0VDy5',
full_name: 'User 1',
colour: 'FD8209'
},
{
id: 2436254,
login: 'webrtc_user2',
password: 'x6Bt0VDy5',
full_name: 'User 2',
colour: '1765FB'
},
{
id: 2436257,
login: 'webrtc_user3',
password: 'x6Bt0VDy5',
full_name: 'User 3',
colour: 'F81480'
},
{
id: 2436258,
login: 'webrtc_user4',
password: 'x6Bt0VDy5',
full_name: 'User 4',
colour: '39A345'
},
{
id: 2436259,
login: 'webrtc_user5',
password: 'x6Bt0VDy5',
full_name: 'User 5',
colour: '921392'
},
{
id: 2436262,
login: 'webrtc_user6',
password: 'x6Bt0VDy5',
full_name: 'User 6',
colour: '6594C5'
},
{
id: 2436263,
login: 'webrtc_user7',
password: 'x6Bt0VDy5',
full_name: 'User 7',
colour: 'C1061E'
},
{
id: 2436265,
login: 'webrtc_user8',
password: 'x6Bt0VDy5',
full_name: 'User 8',
colour: '898989'
},
{
id: 2436266,
login: 'webrtc_user9',
password: 'x6Bt0VDy5',
full_name: 'User 9',
colour: 'C7B325'
},
{
id: 2436269,
login: 'webrtc_user10',
password: 'x6Bt0VDy5',
full_name: 'User 10',
colour: 'BDA0CA'
}
];

/** set QBUsers */
var QBUsers = usersQuery === 'qa' ? QBUsersQA : usersQuery === 'dev' ? QBUsersDev : QBUsersProd;

var MESSAGES = {
'login': 'Login as any user on this computer and another user on another computer.',
'create_session': 'Creating a session...',
'connect': 'Connecting...',
'connect_error': 'Something wrong with connect to chat. Check internet connection or user info and trying again.',
'login_as': 'Logged in as ',
'title_login': 'Choose a user to login with:',
'title_callee': 'Choose users to call:',
'calling': 'Calling...',
'webrtc_not_avaible': 'WebRTC is not available in your browser',
'no_internet': 'Please check your Internet connection and try again'
};

/**
* PRIVATE
*/
/**
* [_getQueryVar get value of key from search string of url]
* @param {[string]} q [name of query]
* @return {[string]} [value of query]
*/
function _getQueryVar(q) {
var query = window.location.search.substring(1),
vars = query.split("&"),
answ = false;

vars.forEach(function(el, i){
var pair = el.split('=');

if(pair[0] === q) {
answ = pair[1];
}
});

return answ;
}

/**
* set configuration variables in global
*/
window.QBApp = QBApp;
window.CONFIG = CONFIG;
window.QBUsers = QBUsers;
window.MESSAGES = MESSAGES;
var CONFIG = {
debug: true,
webrtc: {
answerTimeInterval: 30,
dialingTimeInterval: 5,
disconnectTimeInterval: 30,
statsReportTimeInterval: 5
}
};

var CREDENTIALS = {
'prod': {
'appId': 40718,
'authKey': 'AnB-JpA6r4y6RmS',
'authSecret': '3O7Sr5Pg4Qjexwn'
},
'test': {
'appId': 39854,
'authKey': 'JtensAa9y4AM5Yk',
'authSecret': 'AsDFwwwxpr3LN5w'
}
};

var MESSAGES = {
'login': 'Login as any user on this computer and another user on another computer.',
'create_session': 'Creating a session...',
'connect': 'Connecting...',
'connect_error': 'Something went wrong with the connection. Check internet connection or user info and try again.',
'login_as': 'Logged in as ',
'title_login': 'Choose a user to login with:',
'title_callee': 'Choose users to call:',
'calling': 'Calling...',
'webrtc_not_avaible': 'WebRTC is not available in your browser',
'no_internet': 'Please check your Internet connection and try again'
};

window.CONFIG = {
'CREDENTIALS': CREDENTIALS,
'APP_CONFIG': CONFIG,
'MESSAGES': MESSAGES
};
}(window));
14 changes: 14 additions & 0 deletions samples/webrtc/images/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading