|
@@ -2,31 +2,31 @@
|
2
|
2
|
|
3
|
3
|
:root {
|
4
|
4
|
/*Using colour scheme https://color.adobe.com/TD-Colors---Option-3-color-theme-10394433/*/
|
5
|
|
- --colour1:#2B3A42;
|
6
|
|
- --colour2:#3F5765;
|
7
|
|
- --colour3:#BDD4DE;
|
8
|
|
- --colour4:#EFEFEF;
|
9
|
|
- --colour5:#FF5035;
|
10
|
|
-
|
11
|
|
- --buttonFont:Helvetica;
|
12
|
|
- --inputFont:Helvetica;
|
|
5
|
+ --colour1: #2B3A42;
|
|
6
|
+ --colour2: #3F5765;
|
|
7
|
+ --colour3: #BDD4DE;
|
|
8
|
+ --colour4: #EFEFEF;
|
|
9
|
+ --colour5: #FF5035;
|
|
10
|
+
|
|
11
|
+ --buttonFont: Helvetica;
|
|
12
|
+ --inputFont: Helvetica;
|
13
|
13
|
}
|
14
|
14
|
|
15
|
|
-body{
|
16
|
|
- margin: 0px;
|
17
|
|
- background-color: black;
|
18
|
|
-}
|
|
15
|
+body {
|
|
16
|
+ margin: 0px;
|
|
17
|
+ background-color: black;
|
|
18
|
+}
|
19
|
19
|
|
20
|
20
|
#playerUI {
|
21
|
21
|
width: 100%;
|
22
|
22
|
position: absolute;
|
23
|
|
- /*top: 0;
|
24
|
|
- left: 0;*/
|
|
23
|
+ top: 0;
|
|
24
|
+ left: 0;
|
25
|
25
|
z-index: 10;
|
26
|
26
|
}
|
27
|
27
|
|
28
|
28
|
.statsContainer {
|
29
|
|
- background-color: rgba(0,0,0,0.8);
|
|
29
|
+ background-color: rgba(0, 0, 0, 0.8);
|
30
|
30
|
text-align: left;
|
31
|
31
|
display: block;
|
32
|
32
|
margin-top: 5px;
|
|
@@ -39,39 +39,47 @@ body{
|
39
|
39
|
color: lime;
|
40
|
40
|
}
|
41
|
41
|
|
42
|
|
-canvas{
|
43
|
|
- image-rendering: crisp-edges;
|
44
|
|
- position: absolute;
|
|
42
|
+canvas {
|
|
43
|
+ image-rendering: crisp-edges;
|
|
44
|
+ position: absolute;
|
45
|
45
|
}
|
46
|
46
|
|
47
|
|
-video{
|
|
47
|
+video {
|
48
|
48
|
position: absolute;
|
49
|
49
|
width: 100%;
|
50
|
50
|
height: 100%;
|
51
|
51
|
}
|
52
|
52
|
|
53
|
|
-#player{
|
|
53
|
+#player {}
|
54
|
54
|
|
55
|
|
-}
|
56
|
|
-
|
57
|
|
-#overlay{
|
|
55
|
+#overlay {
|
58
|
56
|
-moz-border-radius-bottomright: 5px;
|
59
|
57
|
-moz-border-radius-bottomleft: 5px;
|
60
|
58
|
-webkit-border-bottom-right-radius: 5px;
|
61
|
59
|
-webkit-border-bottom-left-radius: 5px;
|
62
|
|
- border-bottom-right-radius: 5px; /* future proofing */
|
63
|
|
- border-bottom-left-radius: 5px; /* future proofing */
|
64
|
|
- -khtml-border-bottom-right-radius: 5px; /* for old Konqueror browsers */
|
65
|
|
- -khtml-border-bottom-left-radius: 5px; /* for old Konqueror browsers */
|
66
|
|
-
|
67
|
|
- -webkit-touch-callout: none; /* iOS Safari */
|
68
|
|
- -webkit-user-select: none; /* Safari */
|
69
|
|
- -khtml-user-select: none; /* Konqueror HTML */
|
70
|
|
- -moz-user-select: none; /* Firefox */
|
71
|
|
- -ms-user-select: none; /* Internet Explorer/Edge */
|
72
|
|
- user-select: none; /* Non-prefixed version, currently
|
|
60
|
+ border-bottom-right-radius: 5px;
|
|
61
|
+ /* future proofing */
|
|
62
|
+ border-bottom-left-radius: 5px;
|
|
63
|
+ /* future proofing */
|
|
64
|
+ -khtml-border-bottom-right-radius: 5px;
|
|
65
|
+ /* for old Konqueror browsers */
|
|
66
|
+ -khtml-border-bottom-left-radius: 5px;
|
|
67
|
+ /* for old Konqueror browsers */
|
|
68
|
+
|
|
69
|
+ -webkit-touch-callout: none;
|
|
70
|
+ /* iOS Safari */
|
|
71
|
+ -webkit-user-select: none;
|
|
72
|
+ /* Safari */
|
|
73
|
+ -khtml-user-select: none;
|
|
74
|
+ /* Konqueror HTML */
|
|
75
|
+ -moz-user-select: none;
|
|
76
|
+ /* Firefox */
|
|
77
|
+ -ms-user-select: none;
|
|
78
|
+ /* Internet Explorer/Edge */
|
|
79
|
+ user-select: none;
|
|
80
|
+ /* Non-prefixed version, currently
|
73
|
81
|
supported by Chrome and Opera */
|
74
|
|
-
|
|
82
|
+
|
75
|
83
|
position: absolute;
|
76
|
84
|
padding: 4px;
|
77
|
85
|
top: 0;
|
|
@@ -82,43 +90,47 @@ video{
|
82
|
90
|
}
|
83
|
91
|
|
84
|
92
|
.overlay {
|
85
|
|
- background-color: var(--colour2);
|
|
93
|
+ background-color: var(--colour2);
|
86
|
94
|
font-family: var(--buttonFont);
|
87
|
95
|
font-weight: lighter;
|
88
|
96
|
color: var(--colour4);
|
89
|
97
|
}
|
90
|
98
|
|
91
|
|
-.overlay-shown > #overlaySettings {
|
|
99
|
+.overlay-shown>#overlaySettings {
|
92
|
100
|
padding: 50px 4px 4px 4px;
|
93
|
101
|
display: block;
|
94
|
102
|
}
|
95
|
103
|
|
96
|
|
-.overlay-shown > div > #overlayButton {
|
|
104
|
+.overlay-shown>div>#overlayButton {
|
97
|
105
|
transform: rotate(-135deg);
|
98
|
|
- -webkit-transform: rotate(-135deg); /* Safari */
|
99
|
|
- -moz-transform: rotate(-135deg); /* Firefox */
|
100
|
|
- -ms-transform: rotate(-135deg); /* IE */
|
101
|
|
- -o-transform: rotate(-135deg); /* Opera */
|
|
106
|
+ -webkit-transform: rotate(-135deg);
|
|
107
|
+ /* Safari */
|
|
108
|
+ -moz-transform: rotate(-135deg);
|
|
109
|
+ /* Firefox */
|
|
110
|
+ -ms-transform: rotate(-135deg);
|
|
111
|
+ /* IE */
|
|
112
|
+ -o-transform: rotate(-135deg);
|
|
113
|
+ /* Opera */
|
102
|
114
|
}
|
103
|
115
|
|
104
|
|
-#overlayButton:hover{
|
|
116
|
+#overlayButton:hover {
|
105
|
117
|
cursor: pointer;
|
106
|
118
|
}
|
107
|
119
|
|
108
|
|
-#overlayButton{
|
|
120
|
+#overlayButton {
|
109
|
121
|
transition-duration: 250ms;
|
110
|
122
|
float: right;
|
111
|
123
|
text-align: right;
|
112
|
124
|
font-size: 40px;
|
113
|
125
|
}
|
114
|
126
|
|
115
|
|
-#qualityStatus{
|
|
127
|
+#qualityStatus {
|
116
|
128
|
float: left;
|
117
|
129
|
font-size: 37px;
|
118
|
130
|
padding-right: 4px;
|
119
|
131
|
}
|
120
|
132
|
|
121
|
|
-#overlaySettings{
|
|
133
|
+#overlaySettings {
|
122
|
134
|
width: 400px;
|
123
|
135
|
display: none;
|
124
|
136
|
}
|
|
@@ -139,17 +151,19 @@ video{
|
139
|
151
|
color: red;
|
140
|
152
|
}
|
141
|
153
|
|
142
|
|
-#videoMessageOverlay{
|
|
154
|
+#videoMessageOverlay {
|
143
|
155
|
z-index: 20;
|
144
|
|
- color: var(--colour4);;
|
|
156
|
+ color: var(--colour4);
|
|
157
|
+ ;
|
145
|
158
|
font-size: 1.8em;
|
146
|
159
|
position: absolute;
|
147
|
160
|
margin: auto;
|
148
|
|
- font-family: var(--inputFont);;
|
|
161
|
+ font-family: var(--inputFont);
|
|
162
|
+ ;
|
149
|
163
|
width: 100%;
|
150
|
164
|
}
|
151
|
165
|
|
152
|
|
-#videoPlayOverlay{
|
|
166
|
+#videoPlayOverlay {
|
153
|
167
|
z-index: 30;
|
154
|
168
|
position: absolute;
|
155
|
169
|
color: var(--colour4);
|
|
@@ -161,7 +175,7 @@ video{
|
161
|
175
|
}
|
162
|
176
|
|
163
|
177
|
/* State for element to be clickable */
|
164
|
|
-.clickableState{
|
|
178
|
+.clickableState {
|
165
|
179
|
align-items: center;
|
166
|
180
|
justify-content: center;
|
167
|
181
|
display: flex;
|
|
@@ -169,51 +183,52 @@ video{
|
169
|
183
|
}
|
170
|
184
|
|
171
|
185
|
/* State for element to show text, this is for informational use*/
|
172
|
|
-.textDisplayState{
|
|
186
|
+.textDisplayState {
|
173
|
187
|
display: flex;
|
174
|
188
|
}
|
175
|
189
|
|
176
|
190
|
/* State to hide overlay, WebRTC communication is in progress and or is playing */
|
177
|
|
-.hiddenState{
|
|
191
|
+.hiddenState {
|
178
|
192
|
display: none;
|
179
|
193
|
}
|
180
|
194
|
|
181
|
|
-#playButton{
|
|
195
|
+#playButton {
|
182
|
196
|
display: inline-block;
|
183
|
197
|
height: auto;
|
184
|
198
|
}
|
185
|
199
|
|
186
|
|
-img#playButton{
|
|
200
|
+img#playButton {
|
187
|
201
|
max-width: 241px;
|
188
|
202
|
width: 10%;
|
189
|
203
|
}
|
190
|
204
|
|
191
|
|
-#UIInteraction{
|
|
205
|
+#UIInteraction {
|
192
|
206
|
position: fixed;
|
193
|
207
|
}
|
194
|
208
|
|
195
|
|
-#UIInteractionButtonBoundary{
|
|
209
|
+#UIInteractionButtonBoundary {
|
196
|
210
|
padding: 2px;
|
197
|
211
|
}
|
198
|
212
|
|
199
|
|
-#UIInteractionButton{
|
|
213
|
+#UIInteractionButton {
|
200
|
214
|
cursor: pointer;
|
201
|
215
|
}
|
202
|
216
|
|
203
|
|
-#hiddenInput{
|
|
217
|
+#hiddenInput {
|
204
|
218
|
position: absolute;
|
205
|
|
- left: -10%; /* Although invisible, push off-screen to prevent user interaction. */
|
|
219
|
+ left: -10%;
|
|
220
|
+ /* Although invisible, push off-screen to prevent user interaction. */
|
206
|
221
|
width: 0px;
|
207
|
222
|
opacity: 0;
|
208
|
223
|
}
|
209
|
224
|
|
210
|
|
-#editTextButton{
|
|
225
|
+#editTextButton {
|
211
|
226
|
position: absolute;
|
212
|
227
|
height: 40px;
|
213
|
228
|
width: 40px;
|
214
|
229
|
}
|
215
|
230
|
|
216
|
|
-.settings-text{
|
|
231
|
+.settings-text {
|
217
|
232
|
color: var(--colour4);
|
218
|
233
|
vertical-align: middle;
|
219
|
234
|
font-size: 18px;
|
|
@@ -221,18 +236,18 @@ img#playButton{
|
221
|
236
|
display: inline-block;
|
222
|
237
|
}
|
223
|
238
|
|
224
|
|
-.overlay-button{
|
|
239
|
+.overlay-button {
|
225
|
240
|
line-height: 1.1;
|
226
|
241
|
padding: 1px 6px;
|
227
|
242
|
}
|
228
|
243
|
|
229
|
|
-.btn-overlay{
|
|
244
|
+.btn-overlay {
|
230
|
245
|
float: right;
|
231
|
246
|
vertical-align: middle;
|
232
|
247
|
display: inline-block;
|
233
|
248
|
}
|
234
|
249
|
|
235
|
|
-.btn-flat{
|
|
250
|
+.btn-flat {
|
236
|
251
|
background: var(--colour4);
|
237
|
252
|
border: 2px solid var(--colour5);
|
238
|
253
|
font-weight: bold;
|
|
@@ -244,106 +259,133 @@ img#playButton{
|
244
|
259
|
height: 20px;
|
245
|
260
|
}
|
246
|
261
|
|
247
|
|
-.btn-flat:disabled{
|
|
262
|
+.btn-flat:disabled {
|
248
|
263
|
background: var(--colour4);
|
249
|
264
|
border-color: var(--colour3);
|
250
|
265
|
color: var(--colour3);
|
251
|
266
|
cursor: default;
|
252
|
267
|
}
|
253
|
268
|
|
254
|
|
-.btn-flat:active{
|
|
269
|
+.btn-flat:active {
|
255
|
270
|
border-color: var(--colour2);
|
256
|
271
|
color: var(--colour2);
|
257
|
272
|
}
|
258
|
273
|
|
259
|
|
-.btn-flat:focus{
|
|
274
|
+.btn-flat:focus {
|
260
|
275
|
outline: none;
|
261
|
276
|
}
|
|
277
|
+
|
262
|
278
|
/*** Toggle Switch styles ***/
|
263
|
279
|
.tgl-switch {
|
264
|
|
- float: right;
|
265
|
|
- vertical-align: middle;
|
266
|
|
- display: inline-block;
|
|
280
|
+ float: right;
|
|
281
|
+ vertical-align: middle;
|
|
282
|
+ display: inline-block;
|
267
|
283
|
}
|
268
|
284
|
|
269
|
285
|
.tgl-switch .tgl {
|
270
|
|
- display:none;
|
|
286
|
+ display: none;
|
271
|
287
|
}
|
272
|
288
|
|
273
|
|
-.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-slider {
|
274
|
|
- -webkit-box-sizing: border-box;
|
275
|
|
- box-sizing: border-box;
|
|
289
|
+.tgl,
|
|
290
|
+.tgl:after,
|
|
291
|
+.tgl:before,
|
|
292
|
+.tgl *,
|
|
293
|
+.tgl *:after,
|
|
294
|
+.tgl *:before,
|
|
295
|
+.tgl+.tgl-slider {
|
|
296
|
+ -webkit-box-sizing: border-box;
|
|
297
|
+ box-sizing: border-box;
|
276
|
298
|
}
|
277
|
|
-.tgl::-moz-selection, .tgl:after::-moz-selection, .tgl:before::-moz-selection, .tgl *::-moz-selection, .tgl *:after::-moz-selection, .tgl *:before::-moz-selection, .tgl + .tgl-slider::-moz-selection {
|
278
|
|
- background: none;
|
|
299
|
+
|
|
300
|
+.tgl::-moz-selection,
|
|
301
|
+.tgl:after::-moz-selection,
|
|
302
|
+.tgl:before::-moz-selection,
|
|
303
|
+.tgl *::-moz-selection,
|
|
304
|
+.tgl *:after::-moz-selection,
|
|
305
|
+.tgl *:before::-moz-selection,
|
|
306
|
+.tgl+.tgl-slider::-moz-selection {
|
|
307
|
+ background: none;
|
279
|
308
|
}
|
280
|
|
-.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-slider::selection {
|
281
|
|
- background: none;
|
|
309
|
+
|
|
310
|
+.tgl::selection,
|
|
311
|
+.tgl:after::selection,
|
|
312
|
+.tgl:before::selection,
|
|
313
|
+.tgl *::selection,
|
|
314
|
+.tgl *:after::selection,
|
|
315
|
+.tgl *:before::selection,
|
|
316
|
+.tgl+.tgl-slider::selection {
|
|
317
|
+ background: none;
|
282
|
318
|
}
|
283
|
319
|
|
284
|
320
|
.tgl-slider {
|
285
|
|
- float:right;
|
|
321
|
+ float: right;
|
286
|
322
|
}
|
287
|
323
|
|
288
|
|
-.tgl + .tgl-slider {
|
289
|
|
- outline: 0;
|
290
|
|
- display: block;
|
291
|
|
- width: 40px;
|
292
|
|
- height: 18px;
|
293
|
|
- position: relative;
|
294
|
|
- cursor: pointer;
|
295
|
|
- -webkit-user-select: none;
|
296
|
|
- -moz-user-select: none;
|
297
|
|
- -ms-user-select: none;
|
298
|
|
- user-select: none;
|
|
324
|
+.tgl+.tgl-slider {
|
|
325
|
+ outline: 0;
|
|
326
|
+ display: block;
|
|
327
|
+ width: 40px;
|
|
328
|
+ height: 18px;
|
|
329
|
+ position: relative;
|
|
330
|
+ cursor: pointer;
|
|
331
|
+ -webkit-user-select: none;
|
|
332
|
+ -moz-user-select: none;
|
|
333
|
+ -ms-user-select: none;
|
|
334
|
+ user-select: none;
|
299
|
335
|
}
|
300
|
336
|
|
301
|
|
-.tgl + .tgl-slider:after, .tgl + .tgl-slider:before {
|
302
|
|
- position: relative;
|
303
|
|
- display: block;
|
304
|
|
- content: "";
|
305
|
|
- width: 50%;
|
306
|
|
- height: 100%;
|
|
337
|
+.tgl+.tgl-slider:after,
|
|
338
|
+.tgl+.tgl-slider:before {
|
|
339
|
+ position: relative;
|
|
340
|
+ display: block;
|
|
341
|
+ content: "";
|
|
342
|
+ width: 50%;
|
|
343
|
+ height: 100%;
|
307
|
344
|
}
|
308
|
|
-.tgl + .tgl-slider:after {
|
309
|
|
- left: 0;
|
|
345
|
+
|
|
346
|
+.tgl+.tgl-slider:after {
|
|
347
|
+ left: 0;
|
310
|
348
|
}
|
311
|
|
-.tgl + .tgl-slider:before {
|
312
|
|
- display: none;
|
|
349
|
+
|
|
350
|
+.tgl+.tgl-slider:before {
|
|
351
|
+ display: none;
|
313
|
352
|
}
|
314
|
353
|
|
315
|
|
-.tgl-flat + .tgl-slider {
|
316
|
|
- padding: 2px;
|
317
|
|
- -webkit-transition: all .2s ease;
|
318
|
|
- transition: all .2s ease;
|
319
|
|
- background: #fff;
|
320
|
|
- border: 3px solid var(--colour4);
|
321
|
|
- border-radius: 2em;
|
|
354
|
+.tgl-flat+.tgl-slider {
|
|
355
|
+ padding: 2px;
|
|
356
|
+ -webkit-transition: all .2s ease;
|
|
357
|
+ transition: all .2s ease;
|
|
358
|
+ background: #fff;
|
|
359
|
+ border: 3px solid var(--colour4);
|
|
360
|
+ border-radius: 2em;
|
322
|
361
|
}
|
323
|
362
|
|
324
|
|
-.tgl-flat + .tgl-slider:after {
|
325
|
|
- -webkit-transition: all .2s ease;
|
326
|
|
- transition: all .2s ease;
|
327
|
|
- background: var(--colour4);
|
328
|
|
- content: "";
|
329
|
|
- border-radius: 1em;
|
|
363
|
+.tgl-flat+.tgl-slider:after {
|
|
364
|
+ -webkit-transition: all .2s ease;
|
|
365
|
+ transition: all .2s ease;
|
|
366
|
+ background: var(--colour4);
|
|
367
|
+ content: "";
|
|
368
|
+ border-radius: 1em;
|
330
|
369
|
}
|
331
|
370
|
|
332
|
|
-.tgl-flat:checked + .tgl-slider {
|
333
|
|
- border: 3px solid var(--colour5);
|
|
371
|
+.tgl-flat:checked+.tgl-slider {
|
|
372
|
+ border: 3px solid var(--colour5);
|
334
|
373
|
}
|
335
|
374
|
|
336
|
|
-.tgl-flat:checked + .tgl-slider:after {
|
337
|
|
- left: 50%;
|
338
|
|
- background: var(--colour5);
|
|
375
|
+.tgl-flat:checked+.tgl-slider:after {
|
|
376
|
+ left: 50%;
|
|
377
|
+ background: var(--colour5);
|
339
|
378
|
}
|
|
379
|
+
|
340
|
380
|
/*** Toggle Switch styles ***/
|
341
|
381
|
|
342
|
|
-#encoderSettings, #webRTCSettings {
|
|
382
|
+#encoderSettings,
|
|
383
|
+#webRTCSettings {
|
343
|
384
|
margin: 10px 0px;
|
344
|
385
|
}
|
345
|
386
|
|
346
|
|
-#encoderParamsContainer, #webrtcParamsContainer {
|
|
387
|
+#encoderParamsContainer,
|
|
388
|
+#webrtcParamsContainer {
|
347
|
389
|
padding-left: 5%;
|
348
|
390
|
}
|
349
|
391
|
|