@@ -39,11 +39,11 @@ <h3 class="join__title">
39
39
40
40
< div class ="join__body ">
41
41
< div class ="join__row ">
42
- < input type ="text " class ="join__input " name ="username " placeholder ="Username " autofocus required title ="Enter a username. Should contain only latin characters and alphanumeric characters, start with a letter. " pattern ="^[a-zA-Z][a-zA-Z0-9-_\.]{1,20}$ ">
42
+ < input type ="text " class ="join__input " name ="username " placeholder ="Username " autofocus required title ="Enter a username. Should contain only latin characters and alphanumeric characters, starts with a letter. " pattern ="^[a-zA-Z][a-zA-Z0-9-_\.]{1,20}$ ">
43
43
</ div >
44
44
45
45
< div class ="join__row ">
46
- < input type ="text " class ="join__input " name ="room " placeholder ="Chat room name " required title ="Enter a chat room. Should contain only latin characters and alphanumeric characters, start with a letter . " pattern ="^[a-zA-Z0-9]+$ ">
46
+ < input type ="text " class ="join__input " name ="room " placeholder ="Chat room name " required title ="Enter a chat room. Should contain only latin characters and alphanumeric characters, without space . " pattern ="^[a-zA-Z0-9]+$ ">
47
47
</ div >
48
48
49
49
< div class ="join__row ">
@@ -114,19 +114,70 @@ <h4>Call from <strong class="j-ic_initiator"></strong></h4>
114
114
</ div >
115
115
116
116
<!-- TEMPLATES -->
117
+ <!-- stateBoard -->
118
+ < script type ="text/template " id ="tpl_default ">
119
+ Login in as QuickBlox Conversations room . Logged in as < b > < %= name % > </ b >
120
+ < button class = 'fw-link j-logout' > Logout < / b u t t o n >
121
+ </ script >
122
+
123
+ < script type ="text/template " id ="tpl_during_call ">
124
+ Login in as < b > < %= name % > </ b >
125
+ </ script >
126
+
127
+ < script type ="text/template " id ="tpl_device_not_found ">
128
+ Error: devices ( camera or microphone ) are not found .
129
+ < span class = "qb-text" > & emsp ; Login in < b > as < %= name % > </ b > </ span >
130
+ < button class = 'fw-link j-logout' > Logout < / b u t t o n >
131
+ </ script >
132
+
133
+ < script type ="text/template " id ="tpl_accept_call ">
134
+ < % _ . each ( users , function ( el , i , list ) { % >
135
+ < % if ( list . length === 1 ) { % >
136
+ < b > < %= el . full_name % > </ b > has accepted the call
137
+ < % } else { % >
138
+ < % if ( ( i + 1 ) === list . length ) { % >
139
+ < b > < %= el . full_name % > </ b > have accepted the call
140
+ < % } else { % >
141
+ < b > < %= el . full_name % > </ b > ,
142
+ < % } % >
143
+ < % } % >
144
+ < % } ) ; % >
145
+ </ script >
146
+
147
+ < script type ="text/template " id ="tpl_call_stop ">
148
+ Call is stopped . & emsp ;
149
+ Login & nbsp ; in & nbsp ; as & nbsp ; < %= name % >
150
+ < button class = 'fw-link j-logout' > Logout</ button >
151
+ </ script >
152
+
153
+ < script type ="text/template " id ="p2p_call_stop ">
154
+ < %= name % > has < %= reason % > . Call is stopped. 
155
+ Login in as < %= currentName % >
156
+ < button class = 'fw-link j-logout' > Logout</ button >
157
+ </ script >
158
+
159
+ < script type ="text/template " id ="dashboard_tpl ">
160
+ < div class = "state_board j-state_board" > </ div >
161
+
162
+ < div class = "dashboard__inner inner" >
163
+ < div class = "users j-users_wrap" > </ div >
164
+
165
+ < div class = "board clearfix j-board" > < / div >
166
+ </ div >
167
+ </ script >
168
+
117
169
< script type ="text/template " id ="frames_tpl ">
118
170
< div class = "frames" >
119
171
< div class = "frames__main" >
120
172
< div class = "frames__main_timer invisible" id = "timer" >
121
173
</ div >
122
174
123
- < video id = "main_video" class = "frames__main_v fw-video" >
124
- </ video >
175
+ < div class = "qb-video" >
176
+ < video id = "main_video" class = "frames__main_v qb-video_source" > </ video >
177
+ </ div >
125
178
</ div >
126
179
127
- < div class = "frames__callee j-callees" >
128
- Callee
129
- </ div >
180
+ < div class = "frames__callees j-callees" > </ div >
130
181
</ div >
131
182
132
183
< div class = "caller" >
@@ -140,7 +191,9 @@ <h4 class="caller__name">
140
191
< / h4 >
141
192
142
193
< div class = "caller__frames" >
143
- < video id = "localVideo" class = "fw-video" > </ video >
194
+ < div class = "qb-video" >
195
+ < video id = "localVideo" class = "qb-video_source" > </ video >
196
+ </ div >
144
197
145
198
< div class = "caller__frames_acts" >
146
199
< button class = "caller__frames_acts_btn j-caller__ctrl" data-target = "video" >
@@ -215,21 +268,6 @@ <h4 class="caller__name">
215
268
< / div >
216
269
</ script >
217
270
218
- < script type ="text/template " id ="dashboard_tpl ">
219
- < div class = "state_board j-state_board" > </ div >
220
-
221
- < div class = "dashboard__inner inner" >
222
- < div class = "users j-users_wrap" > </ div >
223
-
224
- < div class = "board clearfix j-board" > < / div >
225
- </ div >
226
- </ script >
227
-
228
- < script type ="text/template " id ="default_tpl ">
229
- Login in as QuickBlox Conversations room . Logged in as < b > < %= name % > </ b >
230
- < button class = 'fw-link j-logout' > Logout < / b u t t o n >
231
- </ script >
232
-
233
271
< script type ="text/template " id ="user_tpl ">
234
272
< div class = "users__item" >
235
273
< button class = "users__user j-user" data-id = "<%= id %>" data-login = "<%= login %>" data-name = "<%= full_name %>" >
@@ -240,62 +278,21 @@ <h4 class="caller__name">
240
278
</ div >
241
279
</ script >
242
280
243
- < script type ="text/template " id ="accept_call ">
244
- < % _ . each ( users , function ( el , i , list ) { % >
245
- < % if ( list . length === 1 ) { % >
246
- < b > < %= el . full_name % > </ b > has accepted the call
247
- < % } else { % >
248
- < % if ( ( i + 1 ) === list . length ) { % >
249
- < b > < %= el . full_name % > </ b > have accepted the call
250
- < % } else { % >
251
- < b > < %= el . full_name % > </ b > ,
252
- < % } % >
253
- < % } % >
254
- < % } ) ; % >
255
- </ script >
256
-
257
-
258
-
259
- < script type ="text/template " id ="login_tpl ">
260
- Login in as < b > < %= name % > </ b >
261
- < button class = 'fw-link j-logout' > Logout < / b u t t o n >
262
- </ script >
263
-
264
- < script type ="text/template " id ="during_call ">
265
- Login in as < b > < %= name % > </ b >
266
- </ script >
267
-
268
- < script type ="text/template " id ="device_not_found ">
269
- Error: devices ( camera or microphone ) are not found .
270
- < span class = "qb-text" > & emsp ; Login in < b > as < %= name % > </ b > </ span >
271
- < button class = 'fw-link j-logout' > Logout < / b u t t o n >
272
- </ script >
273
-
274
281
< script type ="text/template " id ="callee_video ">
275
- < div class = "callees__callee j-callee" >
276
- < div class = "callees__callee_inner" >
277
- < p class = "callees__callee_status j-callee_status_<%=userID%>" > Connecting</ p >
278
- < video class = "j-callees__callee_video callees__callee_video fw-video fw-video-wait" id = "remote_video_<%=userID%>" data-user = "<%=userID%>" > </ video >
282
+ < div class = "frames_callee callees__callee j-callee" >
283
+ < div class = "frames_callee_inner" >
284
+ < p class = "frames_callee_status j-callee_status_<%=userID%>" > Connecting</ p >
285
+ < div class = "qb-video" >
286
+ < video class = "j-callees__callee_video frames_callee_video qb-video_source" id = "remote_video_<%=userID%>" data-user = "<%=userID%>" > </ video >
287
+ </ div >
279
288
</ div >
280
289
281
- < p class = "callees__callee_name " > < %= name % > </ p >
290
+ < p class = "frames_callee_name " > < %= name % > </ p >
282
291
</ div >
283
292
</ script >
284
293
285
- < script type ="text/template " id ="call_stop ">
286
- Call is stopped . & emsp ;
287
- Login & nbsp ; in & nbsp ; as & nbsp ; < %= name % >
288
- < button class = 'fw-link j-logout' > Logout</ button >
289
- </ script >
290
-
291
- < script type ="text/template " id ="p2p_call_stop ">
292
- < %= name % > has < %= reason % > . Call is stopped. 
293
- Login in as < %= currentName % >
294
- < button class = 'fw-link j-logout' > Logout</ button >
295
- </ script >
296
-
297
294
<!-- SCRIPT -->
298
- <!-- DEPENDCIES -->
295
+ <!-- dependencies -->
299
296
< script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js "> </ script >
300
297
< script src ="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js "> </ script >
301
298
< script src ="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.2.3/backbone-min.js "> </ script >
@@ -304,13 +301,13 @@ <h4 class="caller__name">
304
301
<!-- QB -->
305
302
< script src ="../../quickblox.min.js "> </ script >
306
303
307
- <!-- APP -->
304
+ <!-- app -->
308
305
< script src ="config.js "> </ script >
309
306
< script src ="js/helpers.js "> </ script >
310
307
< script src ="js/stateBoard.js "> </ script >
311
308
< script src ="js/app.js "> </ script >
312
309
313
- <!-- Hack for github Pages -->
310
+ <!-- hack for github Pages -->
314
311
< script >
315
312
var host = "quickblox.github.io" ;
316
313
if ( ( host == window . location . host ) && ( window . location . protocol != "https:" ) )
0 commit comments