@flashphoner/websdk 2.0.224 → 2.0.225

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- Web SDK - 2.0.224
1
+ Web SDK - 2.0.225
2
2
 
3
3
  [Download builds](https://docs.flashphoner.com/display/WEBSDK2EN/Web+SDK+release+notes)
4
4
 
@@ -8,59 +8,41 @@ body {
8
8
  margin: 0;
9
9
  }
10
10
 
11
- video:-webkit-full-screen {
12
- border-radius: 1px;
11
+ .video {
12
+ margin: 0px auto;
13
+ height: 100%;
14
+ background: #000;
13
15
  }
14
16
 
15
17
  .display, video, canvas, object {
16
18
  width: 100%;
17
19
  height: 100%;
20
+ position: relative;
18
21
  }
19
22
 
20
- #error_output {
21
- width: 100%;
22
- position: absolute;
23
- color: white;
24
- margin-top: 10px !important;
25
- text-align: center;
26
- }
27
-
28
- .player {
29
- box-sizing: border-box;
30
- height: 40px;
31
- -moz-box-sizing: border-box;
32
- float: left;
33
- font-family: Arial, sans-serif;
34
- position: fixed;
35
- padding: 0;
36
- bottom: 0;
37
- z-index: 2147483647 !important;
38
- opacity: 0.8;
39
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
40
- -webkit-transition: opacity 0.3s ease-in;
41
- transition: opacity 0.3s ease-in;
42
- -moz-user-select: none;
43
- -webkit-user-select: none;
44
- user-select: none;
45
- }
46
-
47
- .video {
48
- margin: 0px auto;
49
- height: 100%;
50
- background: #000;
23
+ video:-webkit-full-screen {
24
+ border-radius: 1px;
51
25
  }
52
26
 
53
- .video:hover .player {
54
- opacity: 1;
27
+ /* Prevent stretched picture in full screen mode */
28
+ canvas:-webkit-full-screen {
29
+ width: initial;
30
+ height: initial;
55
31
  }
56
32
 
57
- .player .button-holder {
58
- position: relative;
59
- left: 10px;
33
+ canvas:-moz-full-screen {
34
+ width: initial;
35
+ height: initial;
60
36
  }
61
37
 
62
- .player .volume-icon {
63
- border-right-color: #fff;
38
+ #status {
39
+ width: 100%;
40
+ color: white;
41
+ position: absolute;
42
+ text-align: center;
43
+ display: block;
44
+ background: rgba(0, 0, 0, 0.3);
45
+ z-index: 2147483647 !important;
64
46
  }
65
47
 
66
48
  #play {
@@ -68,8 +50,7 @@ video:-webkit-full-screen {
68
50
  cursor: pointer;
69
51
  transition: 0.3s;
70
52
  -webkit-transition: 0.3s;
71
- transition: 0.3s;
72
- position: absolute;;
53
+ position: absolute;
73
54
  top: 50%;
74
55
  left: 50%;
75
56
  transform: translate(-50%, -50%) scale(1);
@@ -92,399 +73,20 @@ video:-webkit-full-screen {
92
73
  box-shadow: inset 0px 1px 29px 0px rgba(102, 31, 36, 0.75);
93
74
  }
94
75
 
95
- #play:hover {
96
- transform: translate(-50%, -50%) scale(1.05);
97
- -webkit-box-shadow: inset 0px 1px 29px 0px rgba(102, 31, 36, 0.75);
98
- -moz-box-shadow: inset 0px 1px 29px 0px rgba(102, 31, 36, 0.75);
99
- box-shadow: inset 0px 1px 29px 0px rgba(102, 31, 36, 0.75);
100
- }
101
-
102
- .player .volume-icon {
103
- border-right-color: rgba(74, 74, 74, 0.8);
104
- }
105
-
106
- .play-pause {
107
- display: inline-block;
108
- font-size: 1.5em;
109
- float: left;
110
- width: 35px;
111
- margin: 6px 0 0 2%;
112
- cursor: pointer;
113
- font-variant: small-caps;
114
- }
115
-
116
- .play-button {
117
- width: 21px;
118
- height: 20px;
119
- position: relative;
120
- }
121
-
122
- .play-button:after {
123
- content: '';
124
- width: 0;
125
- height: 0;
126
- position: absolute;;
127
- top: 6px;
128
- left: 6px;
129
- border: 8px solid transparent;
130
- border-right: none;
131
- border-left: 16px solid #B8B8B8;
132
- }
133
-
134
- .play-button:hover:after {
135
- border-left: 16px solid #FFF;
136
- }
137
-
138
- .player .play, .player .pause-button {
139
- -webkit-transition: all 0.1s ease-out;
140
- transition: all 0.1s ease-out;
141
- opacity: 0.9;
142
- }
143
-
144
- .player .play .pause-button, .player .pause .play-button {
145
- display: none;
146
- }
147
-
148
- .play-button {
149
- position: relative;;
150
- }
151
-
152
- .player .pause-button {
153
- padding: 5px 0 0 2px;
154
- box-sizing: border-box;
155
- -moz-box-sizing: border-box;
156
- height: 34px;
157
- }
158
-
159
- .player .pause-button span {
160
- width: 18px;
161
- height: 18px;
162
- float: left;
163
- display: block;
164
- background: #FFF;
165
- }
166
-
167
- .player .play:hover {
168
- opacity: 1;
169
- -webkit-transition: 0.1s;
170
- transition: 0.1s;
171
- }
172
-
173
- .player .play:active, .pause-button:active span {
174
- opacity: 1;
175
- }
176
-
177
- .player .pause-button:hover span {
178
- opacity: 1;
179
- -webkit-transition: 0.1s;
180
- transition: 0.1s;
181
- }
182
-
183
- .player .pause-button:active span {
184
- opacity: 1;
185
- -webkit-transition: 0.1s;
186
- transition: 0.1s;
187
- }
188
-
189
- .player .status {
190
- padding: 10px 60px 0 !important;
191
- text-align: center;
192
- position: absolute;
193
- width: 100%;
194
- }
195
-
196
- .player .volume {
197
- position: relative;
198
- float: left;
199
- margin: 0;
200
- width: 40px;
201
- height: 100%;
202
- -webkit-transition: all 0.1s linear;
203
- transition: all 0.1s linear;
204
- opacity: 0.9;
205
- }
206
-
207
- .player .volume:hover {
208
- opacity: 1;
209
- -webkit-transition: all 0.1s linear;
210
- transition: all 0.1s linear;
211
- }
212
-
213
- /* Volume slider */
214
- .volume-range-block {
215
- float: left;
216
- width: 0;
217
- min-height: 35px;
218
- position: relative;
219
- padding: 18px 0 0 0;
220
- overflow: hidden;
221
- -webkit-transition: width 0.17s linear;
222
- transition: width 0.17s linear;
223
- z-index: 10;
224
-
225
- }
226
-
227
- .range-bar {
228
- }
229
-
230
- .volume-range-block.open {
231
- width: 13% !important;
232
- overflow: visible;
233
- }
234
-
235
- .volume-range-block.open-width-full {
236
- width: 65px !important;
237
- overflow: visible;
238
- }
239
-
240
- .volume-range-block:focus, .volume-range-block:active {
241
- outline: none;
242
- }
243
-
244
- .player .volume:hover + .volume-range-block, .volume-range-block:hover, #volume-range:focus .volume-range-block {
245
- width: 13%;
246
- overflow: visible;
247
- -webkit-transition: width 0.17s linear;
248
- transition: width 0.17s linear;
249
- }
250
-
251
- .player .volume-icon:hover {
252
- opacity: 1;
253
- -webkit-transition: all 0.1s linear;
254
- transition: all 0.1s linear;
255
- }
256
-
257
- .player .volume-holder {
258
- display: none !important;
259
- height: 100px;
260
- width: 100%;
261
- position: absolute;
262
- display: none;
263
- left: 0;
264
- border-radius: 5px 5px 0 0;
265
- top: -100px;
266
- }
267
-
268
- .player .volume-bar-holder {
269
- width: 20px;
270
- box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.3);
271
- margin: 15px auto;
272
- height: 80px;
273
- border-radius: 5px;
274
- position: relative;
275
- cursor: pointer;
276
- }
277
-
278
- .player .volume-button {
279
- background: #fff;
280
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
281
- border-radius: 30px;
282
- width: 20px;
283
- height: 20px;
284
- }
285
-
286
- .player .volume-button-holder {
287
- position: relative;
288
- top: -10px;
289
- }
290
-
291
- .player .volume-bar {
292
- background: #33b5d5;
293
- box-shadow: inset -30px 0px 69px -20px #89f6f5;
294
- border-radius: 5px;
295
- width: 100%;
296
- height: 100%;
76
+ .loader {
77
+ border: 10px solid #d3d3d3; /* Light grey */
78
+ border-top: 10px solid #ffffff; /* White */
79
+ border-radius: 50%;
80
+ width: 70px;
81
+ height: 70px;
82
+ animation: spin 2s linear infinite;
297
83
  position: absolute;
298
- bottom: 0;
299
- }
300
-
301
- .player .fullscreen {
302
- width: 40px;
303
- float: right;
304
- margin: 0 2% 0 0;
305
- height: 100%;
306
- }
307
-
308
- @-webkit-keyframes move {
309
- from {
310
- -webkit-transform: scale(3.5);
311
- -moz-transform: scale(3.5);
312
- -o-transform: scale(3.5);
313
- -ms-transform: scale(3.5);
314
- transform: scale(3.5);
315
- }
316
- 70% {
317
- -webkit-transform: scale(4.2);
318
- -moz-transform: scale(4.2);
319
- -o-transform: scale(4.2);
320
- -ms-transform: scale(4.2);
321
- transform: scale(4.2);
322
- }
323
- 73% {
324
- -webkit-transform: scale(4.2);
325
- -moz-transform: scale(4.2);
326
- -o-transform: scale(4.2);
327
- -ms-transform: scale(4.2);
328
- transform: scale(4.2);
329
- }
330
- to {
331
- -webkit-transform: scale(3.5);
332
- -moz-transform: scale(3.5);
333
- -o-transform: scale(3.5);
334
- -ms-transform: scale(3.5);
335
- transform: scale(3.5);
336
- }
337
- }
338
-
339
- @keyframes move {
340
- from {
341
- -webkit-transform: scale(3.5);
342
- -moz-transform: scale(3.5);
343
- -o-transform: scale(3.5);
344
- -ms-transform: scale(3.5);
345
- transform: scale(3.5);
346
- }
347
- 70% {
348
- -webkit-transform: scale(4.2);
349
- -moz-transform: scale(4.2);
350
- -o-transform: scale(4.2);
351
- -ms-transform: scale(4.2);
352
- transform: scale(4.2);
353
- }
354
- 73% {
355
- -webkit-transform: scale(4.2);
356
- -moz-transform: scale(4.2);
357
- -o-transform: scale(4.2);
358
- -ms-transform: scale(4.2);
359
- transform: scale(4.2);
360
- }
361
- to {
362
- -webkit-transform: scale(3.5);
363
- -moz-transform: scale(3.5);
364
- -o-transform: scale(3.5);
365
- -ms-transform: scale(3.5);
366
- transform: scale(3.5);
367
- }
368
- }
369
-
370
- .player .fullscreen .fullscreenBtn {
371
- width: 10px;
372
- height: 20px;
373
- cursor: pointer;
374
- border-radius: 3px;
375
- opacity: 0.9;
376
- -webkit-transition: 0.1s;
377
- transition: 0.1s;
378
- -webkit-transform: scale(3.5);
379
- -moz-transform: scale(3.5);
380
- -o-transform: scale(3.5);
381
- -ms-transform: scale(3.5);
382
- transform: scale(3.5);
383
- display: block;
384
- position: relative;
385
- top: 11px;
386
- margin: 0px auto;
387
- background: transparent !important;
388
- }
389
-
390
- .player .fullscreen:hover .fullscreenBtn {
391
- -webkit-animation: move 0.3s ease-in-out;
392
- -moz-animation: move 0.3s ease-in-out;
393
- -o-animation: move 0.3s ease-in-out;
394
- -ms-animation: move 0.3s ease-in-out;
395
- animation: move 0.3s ease-in-out;
396
- opacity: 1;
397
- -webkit-transition: 0.1s;
398
- transition: 0.1s;
399
- }
400
-
401
- /* Hide standard controls in Chrome, Opera, Safari */
402
-
403
- ::-webkit-media-controls {
404
- display: none !important;
405
- }
406
-
407
- video::-webkit-media-controls {
408
- display: none !important;
409
- }
410
-
411
- video::-webkit-media-controls-enclosure {
412
- display: none !important;
413
- }
414
-
415
- /* Resize controls in full screen modes */
416
-
417
- .player.fullscreenon .play-pause, .player.fullscreenon .volume, .player.fullscreenon .volume-range-block {
418
- -webkit-transform: scale(1.3);
419
- transform: scale(1.3);
420
- }
421
-
422
- .player.fullscreenon .fullscreenBtn {
423
- -webkit-transform: scale(5);
424
- transform: scale(5);
425
- }
426
-
427
- .player.fullscreenon .volume:hover + .volume-range-block, .player.fullscreenon .volume-range-block:hover, .player.fullscreenon #volume-range:focus .volume-range-block {
428
- width: 6% !important;
429
- }
430
-
431
- .fullscreen-vol.open-width {
432
- width: 6% !important;
433
- -webkit-transition: width 0.17s linear;
434
- transition: width 0.17s linear;
435
- }
436
-
437
- .player.fullscreenon .volume-range-block {
438
- width: 6%;
439
- margin-left: 1%;
440
- }
441
-
442
- #slider {
443
- background-color: #696c71;
444
- border: none;
445
- display: block;
446
- height: 4px;
447
- position: relative;
448
- width: 100%;
449
- }
450
-
451
- .ui-slider-range {
452
- background: #FFF;
453
- }
454
-
455
- .ui-slider-handle {
456
- width: 30px !important;
457
- height: 30px !important;
458
- top: 50% !important;
459
- background: transparent !important;
460
- outline: none !important;
461
- margin: -15px 0 0 -15px;
462
- border: none !important;
463
-
464
- }
465
-
466
- .ui-slider-handle:after {
467
- content: '';
468
- background: #FFF;
469
84
  top: 50%;
470
85
  left: 50%;
471
- border-radius: 100%;
472
- cursor: pointer;
473
- height: 13px;
474
- margin: -6.5px 0 0 -6.5px;
475
- position: absolute;
476
- width: 13px;
477
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
478
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
479
- }
480
-
481
- /* Prevent stretched picture in full screen mode */
482
- canvas:-webkit-full-screen {
483
- width: initial;
484
- height: initial;
86
+ margin: -40px 0 0 -40px;
485
87
  }
486
88
 
487
- canvas:-moz-full-screen {
488
- width: initial;
489
- height: initial;
89
+ @keyframes spin {
90
+ 0% { transform: rotate(0deg); }
91
+ 100% { transform: rotate(360deg); }
490
92
  }
@@ -3,78 +3,20 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <meta name="apple-mobile-web-app-capable" content="yes">
7
6
 
8
- <link rel="stylesheet" href="../../dependencies/bootstrap/css/bootstrap.css">
9
- <link rel="stylesheet" href="../../dependencies/bootstrap/font-awesome/css/font-awesome.min.css">
10
- <link rel="stylesheet" href="jquery-ui.css">
11
7
  <link rel="stylesheet" href="player.css">
12
8
 
13
9
  <title>Player</title>
14
10
  <script type="text/javascript" src="../../../../flashphoner.js"></script>
15
- <script type="text/javascript" src="../../dependencies/jquery/jquery-1.12.0.js"></script>
16
- <script type="text/javascript" src="../../dependencies/jquery/jquery-ui.js"></script>
17
- <script type="text/javascript" src="jquery.ui.touch-punch.min.js"></script>
18
- <script type="text/javascript" src="../../dependencies/js/utils.js"></script>
11
+ <script type="text/javascript" src="utils.js"></script>
19
12
  <script type="text/javascript" src="player.js"></script>
20
13
  </head>
21
14
  <body onload="init_page()">
22
- <div class="video">
23
- <div id="error_output"></div>
15
+ <div class="video" id="container">
16
+ <div id="status"></div>
24
17
  <div id="play"><img src="images/play.png" alt=""></div>
25
- <i id="preloader" class="fa fa-spinner fa-pulse fa-3x fa-fw" aria-hidden="true"
26
- style="color: #ffffff; position: absolute; top: 40%; left: 45.5%;"></i>
18
+ <div id="preloader" class="loader" aria-hidden="true"></div>
27
19
  <div class="display" id="remoteVideo"></div>
28
- <div class="player">
29
- <div class="status"></div>
30
- <div class="play-pause">
31
- <span class="play-button"></span>
32
- <div class="pause-button">
33
- <span> </span>
34
- </div>
35
- </div>
36
- <div class="volume" style="cursor: pointer">
37
-
38
- <svg height="100%" version="1.1" viewBox="0 0 36 36" width="100%">
39
- <defs>
40
- <clipPath>
41
- <path d="m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"></path>
42
- <path d="M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"></path>
43
- <path d="M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z" transform="translate(0, 0)"></path>
44
- </clipPath>
45
- <clipPath>
46
- <path d="m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z" transform="translate(0, 0)"></path>
47
- </clipPath>
48
- </defs>
49
- <path style="fill: #fff;" clip-path="url(#ytp-svg-volume-animation-mask)" d="M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z" fill="#fff" id="ytp-svg-12"></path>
50
- </svg>
51
- </div>
52
-
53
- <div class="volume-range-block" tabindex="0">
54
- <input type="hidden" value="50" id="volume-range">
55
- <div id="slider" ></div>
56
- </div>
57
-
58
- <div class="fullscreen">
59
- <div class="fullscreenBtn">
60
- <svg height="100%" version="1.1" viewBox="0 0 36 36" width="100%">
61
- <g>
62
- <path style="fill: #fff;" d="m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"></path>
63
- </g>
64
- <g>
65
- <path style="fill: #fff;" d="m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"></path>
66
- </g>
67
- <g>
68
- <path style="fill: #fff;" d="m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"></path>
69
- </g>
70
- <g>
71
- <path style="fill: #fff;" d="M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"></path>
72
- </g>
73
-
74
-
75
- </div>
76
- </div>
77
- </div>
78
20
  </div>
79
21
  </body>
80
- </html>
22
+ </html>