@flashphoner/websdk 2.0.223 → 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.223
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,13 +50,12 @@ 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);
76
- background: #00CBFF;
77
57
  border-radius: 26%;
58
+ z-index: 2147483647 !important;
78
59
  }
79
60
 
80
61
  #play img {
@@ -82,399 +63,30 @@ video:-webkit-full-screen {
82
63
  width: 100%;
83
64
  }
84
65
 
85
- #play:hover {
86
- transform: translate(-50%, -50%) scale(1.05);
66
+ .play {
67
+ background: #00CBFF;
68
+ }
69
+
70
+ .stop {
87
71
  -webkit-box-shadow: inset 0px 1px 29px 0px rgba(102, 31, 36, 0.75);
88
72
  -moz-box-shadow: inset 0px 1px 29px 0px rgba(102, 31, 36, 0.75);
89
73
  box-shadow: inset 0px 1px 29px 0px rgba(102, 31, 36, 0.75);
90
74
  }
91
75
 
92
- .player .volume-icon {
93
- border-right-color: rgba(74, 74, 74, 0.8);
94
- }
95
-
96
- .play-pause {
97
- display: inline-block;
98
- font-size: 1.5em;
99
- float: left;
100
- width: 35px;
101
- margin: 6px 0 0 2%;
102
- cursor: pointer;
103
- font-variant: small-caps;
104
- }
105
-
106
- .play-button {
107
- width: 21px;
108
- height: 20px;
109
- position: relative;
110
- }
111
-
112
- .play-button:after {
113
- content: '';
114
- width: 0;
115
- height: 0;
116
- position: absolute;;
117
- top: 6px;
118
- left: 6px;
119
- border: 8px solid transparent;
120
- border-right: none;
121
- border-left: 16px solid #B8B8B8;
122
- }
123
-
124
- .play-button:hover:after {
125
- border-left: 16px solid #FFF;
126
- }
127
-
128
- .player .play, .player .pause-button {
129
- -webkit-transition: all 0.1s ease-out;
130
- transition: all 0.1s ease-out;
131
- opacity: 0.9;
132
- }
133
-
134
- .player .play .pause-button, .player .pause .play-button {
135
- display: none;
136
- }
137
-
138
- .play-button {
139
- position: relative;;
140
- }
141
-
142
- .player .pause-button {
143
- padding: 5px 0 0 2px;
144
- box-sizing: border-box;
145
- -moz-box-sizing: border-box;
146
- height: 34px;
147
- }
148
-
149
- .player .pause-button span {
150
- width: 18px;
151
- height: 18px;
152
- float: left;
153
- display: block;
154
- background: #FFF;
155
- }
156
-
157
- .player .play:hover {
158
- opacity: 1;
159
- -webkit-transition: 0.1s;
160
- transition: 0.1s;
161
- }
162
-
163
- .player .play:active, .pause-button:active span {
164
- opacity: 1;
165
- }
166
-
167
- .player .pause-button:hover span {
168
- opacity: 1;
169
- -webkit-transition: 0.1s;
170
- transition: 0.1s;
171
- }
172
-
173
- .player .pause-button:active span {
174
- opacity: 1;
175
- -webkit-transition: 0.1s;
176
- transition: 0.1s;
177
- }
178
-
179
- .player .status {
180
- padding: 10px 60px 0 !important;
181
- text-align: center;
182
- position: absolute;
183
- width: 100%;
184
- }
185
-
186
- .player .volume {
187
- position: relative;
188
- float: left;
189
- margin: 0;
190
- width: 40px;
191
- height: 100%;
192
- -webkit-transition: all 0.1s linear;
193
- transition: all 0.1s linear;
194
- opacity: 0.9;
195
- }
196
-
197
- .player .volume:hover {
198
- opacity: 1;
199
- -webkit-transition: all 0.1s linear;
200
- transition: all 0.1s linear;
201
- }
202
-
203
- /* Volume slider */
204
- .volume-range-block {
205
- float: left;
206
- width: 0;
207
- min-height: 35px;
208
- position: relative;
209
- padding: 18px 0 0 0;
210
- overflow: hidden;
211
- -webkit-transition: width 0.17s linear;
212
- transition: width 0.17s linear;
213
- z-index: 10;
214
-
215
- }
216
-
217
- .range-bar {
218
- }
219
-
220
- .volume-range-block.open {
221
- width: 13% !important;
222
- overflow: visible;
223
- }
224
-
225
- .volume-range-block.open-width-full {
226
- width: 65px !important;
227
- overflow: visible;
228
- }
229
-
230
- .volume-range-block:focus, .volume-range-block:active {
231
- outline: none;
232
- }
233
-
234
- .player .volume:hover + .volume-range-block, .volume-range-block:hover, #volume-range:focus .volume-range-block {
235
- width: 13%;
236
- overflow: visible;
237
- -webkit-transition: width 0.17s linear;
238
- transition: width 0.17s linear;
239
- }
240
-
241
- .player .volume-icon:hover {
242
- opacity: 1;
243
- -webkit-transition: all 0.1s linear;
244
- transition: all 0.1s linear;
245
- }
246
-
247
- .player .volume-holder {
248
- display: none !important;
249
- height: 100px;
250
- width: 100%;
251
- position: absolute;
252
- display: none;
253
- left: 0;
254
- border-radius: 5px 5px 0 0;
255
- top: -100px;
256
- }
257
-
258
- .player .volume-bar-holder {
259
- width: 20px;
260
- box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.3);
261
- margin: 15px auto;
262
- height: 80px;
263
- border-radius: 5px;
264
- position: relative;
265
- cursor: pointer;
266
- }
267
-
268
- .player .volume-button {
269
- background: #fff;
270
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
271
- border-radius: 30px;
272
- width: 20px;
273
- height: 20px;
274
- }
275
-
276
- .player .volume-button-holder {
277
- position: relative;
278
- top: -10px;
279
- }
280
-
281
- .player .volume-bar {
282
- background: #33b5d5;
283
- box-shadow: inset -30px 0px 69px -20px #89f6f5;
284
- border-radius: 5px;
285
- width: 100%;
286
- 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;
287
83
  position: absolute;
288
- bottom: 0;
289
- }
290
-
291
- .player .fullscreen {
292
- width: 40px;
293
- float: right;
294
- margin: 0 2% 0 0;
295
- height: 100%;
296
- }
297
-
298
- @-webkit-keyframes move {
299
- from {
300
- -webkit-transform: scale(3.5);
301
- -moz-transform: scale(3.5);
302
- -o-transform: scale(3.5);
303
- -ms-transform: scale(3.5);
304
- transform: scale(3.5);
305
- }
306
- 70% {
307
- -webkit-transform: scale(4.2);
308
- -moz-transform: scale(4.2);
309
- -o-transform: scale(4.2);
310
- -ms-transform: scale(4.2);
311
- transform: scale(4.2);
312
- }
313
- 73% {
314
- -webkit-transform: scale(4.2);
315
- -moz-transform: scale(4.2);
316
- -o-transform: scale(4.2);
317
- -ms-transform: scale(4.2);
318
- transform: scale(4.2);
319
- }
320
- to {
321
- -webkit-transform: scale(3.5);
322
- -moz-transform: scale(3.5);
323
- -o-transform: scale(3.5);
324
- -ms-transform: scale(3.5);
325
- transform: scale(3.5);
326
- }
327
- }
328
-
329
- @keyframes move {
330
- from {
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
- 70% {
338
- -webkit-transform: scale(4.2);
339
- -moz-transform: scale(4.2);
340
- -o-transform: scale(4.2);
341
- -ms-transform: scale(4.2);
342
- transform: scale(4.2);
343
- }
344
- 73% {
345
- -webkit-transform: scale(4.2);
346
- -moz-transform: scale(4.2);
347
- -o-transform: scale(4.2);
348
- -ms-transform: scale(4.2);
349
- transform: scale(4.2);
350
- }
351
- to {
352
- -webkit-transform: scale(3.5);
353
- -moz-transform: scale(3.5);
354
- -o-transform: scale(3.5);
355
- -ms-transform: scale(3.5);
356
- transform: scale(3.5);
357
- }
358
- }
359
-
360
- .player .fullscreen .fullscreenBtn {
361
- width: 10px;
362
- height: 20px;
363
- cursor: pointer;
364
- border-radius: 3px;
365
- opacity: 0.9;
366
- -webkit-transition: 0.1s;
367
- transition: 0.1s;
368
- -webkit-transform: scale(3.5);
369
- -moz-transform: scale(3.5);
370
- -o-transform: scale(3.5);
371
- -ms-transform: scale(3.5);
372
- transform: scale(3.5);
373
- display: block;
374
- position: relative;
375
- top: 11px;
376
- margin: 0px auto;
377
- background: transparent !important;
378
- }
379
-
380
- .player .fullscreen:hover .fullscreenBtn {
381
- -webkit-animation: move 0.3s ease-in-out;
382
- -moz-animation: move 0.3s ease-in-out;
383
- -o-animation: move 0.3s ease-in-out;
384
- -ms-animation: move 0.3s ease-in-out;
385
- animation: move 0.3s ease-in-out;
386
- opacity: 1;
387
- -webkit-transition: 0.1s;
388
- transition: 0.1s;
389
- }
390
-
391
- /* Hide standard controls in Chrome, Opera, Safari */
392
-
393
- ::-webkit-media-controls {
394
- display: none !important;
395
- }
396
-
397
- video::-webkit-media-controls {
398
- display: none !important;
399
- }
400
-
401
- video::-webkit-media-controls-enclosure {
402
- display: none !important;
403
- }
404
-
405
- /* Resize controls in full screen modes */
406
-
407
- .player.fullscreenon .play-pause, .player.fullscreenon .volume, .player.fullscreenon .volume-range-block {
408
- -webkit-transform: scale(1.3);
409
- transform: scale(1.3);
410
- }
411
-
412
- .player.fullscreenon .fullscreenBtn {
413
- -webkit-transform: scale(5);
414
- transform: scale(5);
415
- }
416
-
417
- .player.fullscreenon .volume:hover + .volume-range-block, .player.fullscreenon .volume-range-block:hover, .player.fullscreenon #volume-range:focus .volume-range-block {
418
- width: 6% !important;
419
- }
420
-
421
- .fullscreen-vol.open-width {
422
- width: 6% !important;
423
- -webkit-transition: width 0.17s linear;
424
- transition: width 0.17s linear;
425
- }
426
-
427
- .player.fullscreenon .volume-range-block {
428
- width: 6%;
429
- margin-left: 1%;
430
- }
431
-
432
- #slider {
433
- background-color: #696c71;
434
- border: none;
435
- display: block;
436
- height: 4px;
437
- position: relative;
438
- width: 100%;
439
- }
440
-
441
- .ui-slider-range {
442
- background: #FFF;
443
- }
444
-
445
- .ui-slider-handle {
446
- width: 30px !important;
447
- height: 30px !important;
448
- top: 50% !important;
449
- background: transparent !important;
450
- outline: none !important;
451
- margin: -15px 0 0 -15px;
452
- border: none !important;
453
-
454
- }
455
-
456
- .ui-slider-handle:after {
457
- content: '';
458
- background: #FFF;
459
84
  top: 50%;
460
85
  left: 50%;
461
- border-radius: 100%;
462
- cursor: pointer;
463
- height: 13px;
464
- margin: -6.5px 0 0 -6.5px;
465
- position: absolute;
466
- width: 13px;
467
- -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
468
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
469
- }
470
-
471
- /* Prevent stretched picture in full screen mode */
472
- canvas:-webkit-full-screen {
473
- width: initial;
474
- height: initial;
86
+ margin: -40px 0 0 -40px;
475
87
  }
476
88
 
477
- canvas:-moz-full-screen {
478
- width: initial;
479
- height: initial;
89
+ @keyframes spin {
90
+ 0% { transform: rotate(0deg); }
91
+ 100% { transform: rotate(360deg); }
480
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>