forked from DDVTECH/mistserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.html
More file actions
1568 lines (1420 loc) · 77.3 KB
/
interface.html
File metadata and controls
1568 lines (1420 loc) · 77.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" href="https://eslfaceitgroup.com/wp-content/uploads/2020/02/efg-favicon-150x150.png" sizes="32x32">
<title>TRANSPORT1</title>
<style>
html, body {
margin:0;
padding: 0;
height: 100%;
width: 100%;
}
body {
display: flex;
flex-flow: column nowrap;
font-family: Barlow, sans-serif;
background: #222;
color: #fff;
}
header {
background: #000;
color: #fff;
padding: 0.5em;
display: flex;
align-items: center;
}
header .logo {
height: 2em;
}
header > * {
margin: 0 0.5em;
}
header .connection-status {
flex-grow: 1;
text-align: right;
}
.connection-status[data-status] {
opacity: 1;
transition: all 100ms;
}
.connection-status[data-status="connected"] {
opacity: 0;
transition: all 1s 2s;
}
main {
flex-grow: 1;
padding: 0.5em 1em;
position: relative;
}
header .versions {
display: none;
opacity: 0;
text-align: right;
}
header [data-status="connected"] + .versions {
display: block;
opacity: 0.5;
}
header .versions:not(:empty):before {
content: "using ";
}
h1,h2,h3,h4,h5,.titlefont {
font-weight: 700;
text-transform: uppercase;
font-family: Barlow Condensed, sans-serif
}
button {
font-size: inherit;
}
.mediabar {
margin: -0.5em;
display: flex;
flex-flow: row wrap;
}
.mediabar:empty:before {
content: "None.";
margin: 0.5em;
}
.media_elem {
display: flex;
flex-flow: column;
background: #000;
color: #fff;
width: 20em;
border: 3px solid #333;
margin: 0.5em;
vertical-align: top;
position: relative;
--packetloss: 0;
--packetperc: 0%;
}
.media_elem[data-hwencode]:before {
content: 'hardware encoder';
content: attr(data-hwencode) ' encoder';
display: block;
text-align: center;
}
.media_elem[data-hwencode="no"]:before {
content: 'software encoder';
}
.media_elem > p:first-child {
order: -1;
}
.media_elem[data-packetloss]:not([data-packetloss=""]):not([data-packetloss="0"]) .packetloss {
&:before {
counter-reset: packetloss var(--packetloss);
content: 'packetloss: ' counter(packetloss) '%';
}
text-align: center;
margin: 0.5em 0;
padding: 0.25em;
background-image: linear-gradient(to right,darkred,darkred var(--packetperc),darkgreen var(--packetperc));
}
.media_elem img {
width: auto;
height: 10em;
display: block;
margin: 0.5em;
object-fit: scale-down;
}
.media_elem img:not([src]) {
background: url('data:image/svg+xml;base64,PHN2ZyBjbGFzcz0ibG9nbyIgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCA2MyA2Mi45IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA2MyA2Mi45OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU+CjxyZWN0IHk9IjAiIGNsYXNzPSJzdDAiIHdpZHRoPSI2MyIgaGVpZ2h0PSI2MyI+PC9yZWN0Pgo8Zz4KCTxwYXRoIGQ9Ik0xMi4zLDMwLjh2MS45SDQuNVYyMi4zaDcuOHYxLjlINi45djIuMmg0LjJ2MS44SDYuOXYyLjVoNS40VjMwLjh6Ij48L3BhdGg+Cgk8cGF0aCBkPSJNMjIsMjkuNmMwLDEuMy0wLjIsMi4yLTAuNywyLjdjLTAuMywwLjMtMC45LDAuNS0xLjYsMC41aC0zLjljLTAuOCwwLTEuNC0wLjItMS43LTAuNWMtMC4yLTAuMi0wLjQtMC41LTAuNS0wLjkKCQlzLTAuMS0xLjEtMC4xLTJoMi4zYzAsMC44LDAuMSwxLjMsMC4yLDEuNHMwLjMsMC4xLDAuNywwLjFoMi4yYzAuNCwwLDAuNiwwLDAuNy0wLjFzMC4xLTAuNCwwLjEtMWMwLTAuNS0wLjEtMC44LTAuMi0wLjkKCQ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yaDFjMC43LDAsMS4xLTAuMSwxLjItMC4yYzAuMS0wLjEsMC4yLTAuMywwLjItMC41czAuMS0wLjcsMC4xLTEuM3YtNi4zSDQzLjl6Ij48L3BhdGg+Cgk8cGF0aCBkPSJNNTQsNTEuNWMwLDEuNS0wLjMsMi41LTAuOSwzYy0wLjMsMC4zLTAuOSwwLjQtMS44LDAuNEg0OHYzLjVoLTIuNFY0OC4xaDUuN2MwLjksMCwxLjUsMC4xLDEuOCwwLjQKCQljMC4zLDAuMywwLjUsMC42LDAuNywxLjFDNTMuOSw1MCw1NCw1MC42LDU0LDUxLjV6IE00OCw1M2gyLjRjMC41LDAsMC43LDAsMC44LTAuMWMwLjItMC4yLDAuMy0wLjcsMC4zLTEuNGMwLTAuOC0wLjEtMS4yLTAuMy0xLjQKCQlDNTEuMSw1MCw1MC44LDUwLDUwLjQsNTBINDhWNTN6Ij48L3BhdGg+CjwvZz4KPC9zdmc+') center no-repeat;
background-size: 25%;
}
.media_elem img.preloader {
outline: 1px solid blue;
display: none;
}
.media_elem p {
text-align: center;
display: block;
margin: 1em 0.5em;
}
.media_elem > p:first-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.media_elem > h5,
.media_elem .autopush_list {
margin: 0.5em;
}
.media_elem h5 {
margin-bottom: 0;
}
.media_elem .tracks {
display: flex;
flex-flow: column nowrap;
flex-grow: 1;
> span {
display: flex;
flex-flow: row wrap;
margin: 0 0.5em;
--after: '';
--unit: '';
&:before {
/* label of the track */
content: attr(data-codec) ': ';
width: 2.5rem;
margin-right: 0.5em;
}
> span {
margin: 0;
&:empty {
display: none;
&.encoding { display: initial; }
}
&:not(:empty):has(+ span:not(:empty)):after {
--after: ', ';
}
&:after {
content: var(--unit) var(--after);
margin-right: 0.25em;
margin-left: 0.1em;
filter: opacity(0.6);
}
&.jitter { --unit: "ms"; }
&.fps { --unit: "fps"; }
&.channels { --unit: "ch"; }
&.bitrate { --unit: "kbps"; }
&.encoding {
text-align: left;
width: 1.5em;
margin-right: 0.5em;
&:after {
display: none;
}
}
}
}
}
[data-warn="yes"]:before {
content: '!';
text-align: center;
display: inline-block;
font-size: 0.8em;
height: 1em;
aspect-ratio: 1;
line-height: 1em;
align-self: center;
background-image: linear-gradient(to top left,darkorange,gold 50%);
color: black;
font-weight: bold;
margin: 0 0.25em 0 0;
clip-path: polygon(33% 0%, 67% 0%, 100% 33%, 100% 67%, 67% 100%, 33% 100%, 0% 67%, 0% 33%);
}
[data-warn="variable"]:before {
content: '≃';
color: gold;
filter: opacity(0.6);
}
.encoding {
&:before {
content: '(' attr(data-hwencode) ')';
--icon: none;
display: inline-block;
height: 1lh;
width: 100%;
background: var(--icon) no-repeat center;
background-size: contain;
}
&:not([data-hwencode]):before {
content: '';
--icon: url('data:image/svg+xml;utf8,<svg width="100" height="100" version="1.1" viewBox="0 0 100 100" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g style="fill:%23ccc;stroke-linejoin:round;stroke-width:2;stroke:black"><path d="m11.484 25.001c-2.2073 0-3.9844 1.8268-3.9844 4.096v41.81c0 2.2692 1.777 4.096 3.9844 4.096h50.631c2.2073 0 3.9844-1.8268 3.9844-4.096v-9.966c0-.91021.95849-1.4791 1.7252-1.024l21.225 12.598a2.3003 2.3647 0 003.4506-2.0479v-40.93a2.3005 2.3649 0 00-3.4507-2.0481l-21.225 12.596c-.76682.4551-1.7253-.11383-1.7253-1.0241v-9.964c0-2.2692-1.777-4.096-3.9844-4.096z"/><path d="m23.489 37.615.01532 24.839c.0049 1.9906 2.1592 3.2282 3.8752 2.2262l21.462-12.42c1.7027-1.0007 1.6974-3.4698-.0096-4.4632l-21.478-12.419c-.83558-.48409-1.871-.45976-2.6454.03956-.77443.49933-1.22 1.3183-1.2195 2.1974z" style="fill:%232584c4"/></g></svg>');
}
&[data-hwencode="Nvidia"]:before {
content: '';
--icon: url('data:image/svg+xml;utf8,<svg width="15.015mm" height="7.9251mm" version="1.1" viewBox="0 0 15.015 7.9251" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m7.5075 2.3648v-.7157c.0693-.005.1397-.009.21114-.0111 1.9579-.0614 3.2425 1.6825 3.2425 1.6825s-1.3875 1.9267-2.875 1.9267c-.19658 8e-4-.39211-.0304-.57864-.0926v-2.1706c.762.0921.91546.42862 1.3737 1.1927l1.0192-.85937s-.74401-.97578-1.9981-.97578c-.13626 0-.2667.01-.39476.0233zm0-2.3648v1.0697c.0701-.006.14049-.0101.21114-.0127 2.7226-.0915 4.4966 2.2331 4.4966 2.2331s-2.0373 2.4776-4.16 2.4776c-.19447 0-.37677-.018-.54769-.0484v.66093c.14631.0185.29792.0296.45614.0296 1.9751 0 3.4036-1.0086 4.7868-2.2027.22939.18363 1.1684.63051 1.3613.8263-1.3152 1.1007-4.3802 1.9883-6.118 1.9883-.16245-.00053-.32464-.009-.4863-.0254v.92869h7.5075v-7.9251zm0 5.1546v.56435c-1.827-.32543-2.3342-2.2246-2.3342-2.2246s.87736-.97208 2.3342-1.1295v.61913l-.003-.00027c-.76465-.0918-1.3618.62257-1.3618.62257s.33469 1.2023 1.3647 1.5483zm-3.2448-1.7426s1.0827-1.5981 3.2448-1.7629v-.57996c-2.3948.19235-4.4686 2.2204-4.4686 2.2204s1.1745 3.3954 4.4686 3.7063v-.61595c-2.4172-.304-3.2448-2.9678-3.2448-2.9678z" style="fill:%2376b900;stroke-width:.26458"/></svg>');
}
&[data-hwencode="Intel QuickSync"]:before {
content: '';
--icon: url('data:image/svg+xml;utf8,<svg width="94.456mm" height="39.846mm" version="1.1" viewBox="0 0 94.456 39.846" xmlns="http://www.w3.org/2000/svg"><rect x="-1.8311e-6" y=".55" width="7.4348" height="7.4348" style="fill:%2304c7fd"/><path class="st1" d="m7.25 39.29v-26.776h-7.0379v26.776zm46.778.26459v-6.5617c-1.0319 0-1.905-.0529-2.54-.15875-.74083-.10583-1.2965-.37042-1.6669-.74083-.37042-.37042-.60855-.89959-.74084-1.5875-.10583-.66146-.15875-1.5346-.15875-2.5929v-9.3662h5.1065v-6.0325h-5.1065v-10.451h-7.0644v25.903c0 2.196.18521 4.0481.55562 5.5298.37042 1.4552 1.0054 2.6458 1.8785 3.5454.87313.89958 2.0373 1.5346 3.4396 1.9314 1.4288.39688 3.2279.58209 5.371.58209zm40.428-.26459v-39.291h-7.0644v39.291zm-59.399-24.156c-1.9579-2.1167-4.7096-3.175-8.2021-3.175-1.6933 0-3.2279.34395-4.6302 1.0319-1.3758.68792-2.5664 1.6404-3.4925 2.8575l-.39687.50271v-3.8365h-6.9585v26.776h7.0115v-14.261.97896-.47625c.0794-2.5135.68791-4.3656 1.8521-5.5562 1.2435-1.27 2.7517-1.905 4.4715-1.905 2.0373 0 3.5983.635 4.6302 1.8521 1.0054 1.2171 1.5346 2.9369 1.5346 5.1329v14.208h7.1173v-15.187c.0265-3.81-.97896-6.8262-2.9369-8.9429zm48.683 10.716c0-1.9315-.34396-3.7306-1.0054-5.424-.68791-1.6669-1.6404-3.1485-2.831-4.4185-1.2171-1.27-2.6723-2.249-4.3656-2.9633-1.6933-.71438-3.5719-1.0583-5.6092-1.0583-1.9315 0-3.7571.37042-5.4504 1.0848-1.6933.74083-3.175 1.7198-4.4185 2.9633s-2.249 2.7252-2.9633 4.4185c-.74084 1.6933-1.0848 3.519-1.0848 5.4504s.34395 3.7571 1.0319 5.4504c.68792 1.6933 1.6669 3.175 2.884 4.4186 1.2171 1.2435 2.7252 2.249 4.4715 2.9633 1.7462.74083 3.6777 1.1112 5.7415 1.1112 5.9796 0 9.6838-2.7252 11.906-5.2652l-5.08-3.8629c-1.0583 1.27-3.5983 2.9898-6.7733 2.9898-1.9844 0-3.6248-.4498-4.8683-1.3758-1.2435-.89958-2.0902-2.1696-2.54-3.7306l-.0794-.23813h21.034v-2.5135zm-20.981-2.4606c0-1.9579 2.249-5.371 7.0908-5.3975 4.8419 0 7.1173 3.4131 7.1173 5.371z" style="fill:%230068b5"/></svg>');
}
&[data-hwencode="Vulkan"]:before {
content: '';
--icon: url('data:image/svg+xml;utf8,<svg width="275.26mm" height="78.553mm" version="1.1" viewBox="0 0 275.26 78.553" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path transform="translate(34.396 -133.61)" d="m25.954 133.64c-30.681-.56803-55.818 7.2058-59.807 21.692-3.8365 13.944 13.017 30.295 39.079 41.461-11.721-9.4721-17.409-20.109-14.208-29.528 6.2177-18.23 43.444-24.923 83.106-14.922 23.812 5.9796 43.259 17.594 55.959 29.077-5.7415-15.24-33.682-36.936-72.179-44.37-10.881-2.1034-21.724-3.2197-31.951-3.4091zm93.44 23.517v5.3444c4.5773 4.101 8.202 8.2551 10.742 12.277v-17.621h-10.742zm-110.7.02635 17.462 53.975h13.388l17.912-53.975h-12.25l-12.171 37.968h-.15865l-12.012-37.968h-12.171zm91.864 8.123v45.826h10.742v-39.899c-3.466-2.1167-7.0378-4.1006-10.742-5.9262zm126.05 5.6885c-2.2488 8e-5-4.4715.52884-6.6409 1.5606-2.1696 1.0319-3.9423 2.6726-5.2917 4.948h-.23771v-5.4503h-10.213-.02687v39.079h10.742v-20.479c0-3.9688.6351-6.8264 1.958-8.5726 1.3229-1.7462 3.4396-2.619 6.35-2.619 2.5664 0 4.3658.79374 5.3712 2.3812 1.0054 1.5875 1.5079 3.9949 1.5079 7.2228v22.066h10.742v-24.051c0-2.4077-.21125-4.6302-.63458-6.6146-.42334-1.9844-1.1643-3.6776-2.2226-5.0534-1.0583-1.3758-2.4872-2.4608-4.3393-3.2546-1.8255-.76724-4.1799-1.1637-7.0636-1.1638h-.00052zm-46.487.05271c-2.1696 0-4.3128.21176-6.4559.6351-2.1431.42333-4.0742 1.1376-5.794 2.143-1.7198 1.0054-3.1221 2.3282-4.2333 3.9951-1.1074 1.661-1.7417 3.7423-1.9032 6.2441h10.661c.21167-2.1167.89958-3.6247 2.1167-4.5243 1.2171-.89958 2.8841-1.3493 5.0007-1.3493.9525 0 1.852.0527 2.6722.185.84667.13229 1.5607.39698 2.1957.7674.635.37041 1.138.89958 1.5084 1.5875.39687.66146.58188 1.5876.58188 2.7518.0529 1.1112-.26437 1.9578-.97875 2.5399-.71437.58209-1.667 1.0319-2.8841 1.3229-1.2171.3175-2.5927.52906-4.1538.68781-1.561.15876-3.1485.37063-4.7625.60875-1.614.26458-3.2019.60865-4.7894 1.032-1.5875.42334-2.9898 1.0845-4.2333 1.9312-1.2171.84667-2.2221 2.0108-3.0158 3.4396-.7673 1.4288-1.1643 3.2547-1.1643 5.4772 0 2.0108.34407 3.7569 1.032 5.2121.66146 1.4552 1.6138 2.6726 2.8308 3.6251 1.2171.9525 2.6194 1.6669 4.2333 2.1167s3.36.68781 5.2121.68781c2.4342 0 4.7891-.34395 7.1174-1.0583 2.3283-.71438 4.3393-1.9315 6.0591-3.7042.0529.66146.13229 1.2962.26458 1.9312.1323.635.29116 1.2436.50282 1.8521h10.901c-.50271-.79375-.84666-2.0106-1.0583-3.6246-.18521-1.5875-.29094-3.2807-.29094-5.0534v-20.347c0-2.3812-.52917-4.2861-1.5875-5.7149-1.0583-1.4287-2.4078-2.5403-4.0747-3.3605-1.6669-.79375-3.5191-1.3228-5.5299-1.6139-2.0108-.29104-4.0216-.42322-5.9795-.42323zm-18.386 13.017h-.00206v.02688c.00056-.009.00106-.01808.00206-.02688zm-16.327-12.012-13.547 14.076.02687 1.5079 14.869 23.522h13.017l-16.404-24.739 14.738-14.367h-12.7zm-88.609.02636v24.051c0 2.4077.21177 4.6302.6351 6.6146.42333 1.9844 1.1643 3.6776 2.2226 5.0534 1.0583 1.3758 2.4867 2.4341 4.3388 3.2014 1.8256.76729 4.1807 1.1379 7.0647 1.1379 2.249 0 4.4714-.50302 6.6409-1.5084 2.1696-1.0054 3.9423-2.6457 5.2917-4.9211h.23823v5.4503h10.213.026355v-39.079h-10.742v20.479c0 3.9688-.6351 6.8258-1.958 8.5721-1.2965 1.7462-3.4396 2.6195-6.35 2.6195-2.5665 0-4.3653-.79375-5.3707-2.3812-1.0054-1.5875-1.5084-3.9949-1.5084-7.2228v-22.066h-10.742zm62.574 4.7625v34.316h10.742v-25.506c-2.7781-3.3867-7.3024-6.9053-10.742-8.8103zm67.178 15.187v4.0215c0 .58209-.05321 1.4022-.18552 2.4076-.13229 1.0054-.47583 2.011-1.0315 2.99-.55562.97896-1.4026 1.8255-2.5668 2.5399-1.1642.71438-2.8045 1.0583-4.9211 1.0583-.84667 0-1.667-.0795-2.4872-.23823-.79375-.15875-1.5081-.42333-2.1167-.79375-.60855-.39687-1.0849-.89968-1.4288-1.5611-.34396-.635-.52917-1.4551-.52917-2.4076 0-1.0054.18521-1.8257.52917-2.4872.34395-.635.82041-1.1905 1.4025-1.6138.58208-.44979 1.2433-.76739 2.0371-1.032.79375-.26458 1.5875-.44948 2.3812-.60823.84667-.13229 1.7201-.26469 2.5668-.37052.87312-.10584 1.693-.21177 2.4603-.37052.79375-.15875 1.5083-.34376 2.1962-.58188.66146-.23813 1.2436-.55552 1.6934-.95239z" style="fill:%23a41e22"/></svg>');
}
&[data-hwencode="VideoToolbox"]:before {
content: '';
--icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="814" height="1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z" fill="white"/></svg>');
}
&[data-hwencode="software"]:before {
content: '';
--icon: url('data:image/svg+xml;utf8,<svg width="100mm" height="100mm" version="1.1" viewBox="0 0 100 100" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect x="21.449" y="21.521" width="57.103" height="57.103" style="fill:%23078c00;stroke-linejoin:round;stroke-width:4.2;stroke:white"/><path d="m50 .12506a4.209 4.209 0 00-4.209 4.209 4.209 4.209 0 002.1046 3.6452v13.541a2.1047 2.1047 0 001.0606 1.7979 2.1047 2.1047 0 002.0881 0 2.1047 2.1047 0 001.0606-1.7979v-13.542a4.209 4.209 0 002.1042-3.645 4.209 4.209 0 00-4.209-4.209zm-15.641 7.8168a2.1047 2.1047 0 00-1.1169.27602 2.1047 2.1047 0 00-1.0604 1.7986v11.504a2.1047 2.1047 0 003.1484 1.7979 2.1047 2.1047 0 001.0606-1.7979v-11.504a2.1047 2.1047 0 00-2.0317-2.0746zm23.571 0a2.1047 2.1047 0 00-1.1169.27602 2.1047 2.1047 0 00-1.0606 1.7986v11.504a2.1047 2.1047 0 004.209 0v-11.504a2.1047 2.1047 0 00-2.0315-2.0746zm-15.713.0004209a2.1047 2.1047 0 00-1.1167.27558 2.1047 2.1047 0 00-1.0612 1.7986v11.504a2.1047 2.1047 0 001.0612 1.7979 2.1047 2.1047 0 002.0872 0 2.1047 2.1047 0 001.0606-1.7979v-11.504a2.1047 2.1047 0 00-2.0311-2.0742zm23.571 0a2.1047 2.1047 0 00-1.1165.27558 2.1047 2.1047 0 00-1.0614 1.7986v11.504a2.1047 2.1047 0 004.209 0v-11.504a2.1047 2.1047 0 00-2.0311-2.0742zm-55.895 24.364a2.1047 2.1047 0 000 4.209h11.505a2.1047 2.1047 0 001.7979-1.0606 2.1047 2.1047 0 000-2.0872 2.1047 2.1047 0 00-1.7979-1.0612zm68.712 0a2.1047 2.1047 0 00-1.7979 1.0612 2.1047 2.1047 0 000 2.0872 2.1047 2.1047 0 001.7979 1.0606h11.505a2.1047 2.1047 0 000-4.209zm-68.712 7.8573a2.1047 2.1047 0 000 4.209h11.505a2.1047 2.1047 0 001.7979-3.1484 2.1047 2.1047 0 00-1.7979-1.0606zm68.712 0a2.1047 2.1047 0 00-1.7979 1.0606 2.1047 2.1047 0 001.7979 3.1484h11.505a2.1047 2.1047 0 000-4.209zm-41.11 1.1156c-2.3862 0-4.4469.83208-5.8927 2.4637-1.4437 1.6292-2.1333 3.8292-2.1333 6.4189 0 2.672.61205 4.8822 1.9576 6.4902 1.3502 1.6137 3.3723 2.4235 5.7455 2.4235 1.5732 0 2.9516-.21516 4.1318-.69211.39759-.16086.65764-.54685.65753-.97574v-1.692c-.000842-.70203-.67543-1.2065-1.349-1.0086-1.311.38598-2.369.56226-3.1173.56226-1.3792 0-2.2118-.38478-2.8411-1.1706-.63237-.7969-1.0236-2.0669-1.0236-3.9165 0-1.7206.396-2.9449 1.1017-3.816.000421-.000842.0013-.0017.0017-.0025.71044-.88251 1.5242-1.2676 2.7613-1.2676.86981 0 1.7606.22011 2.7088.70038.5204.26398 1.1563.05424 1.4173-.46764l.8137-1.6285c.25616-.51176.05649-1.1346-.44959-1.4018-1.3073-.68975-2.8219-1.0192-4.4902-1.0192zm31.603.19815c-.58112 5.9e-5-1.052.47119-1.0521 1.0523v9.717c-.0157 1.2208-.27202 2.0042-.59032 2.417-.3183.41273-.69434.60576-1.4897.60576-.84732 0-1.2572-.20581-1.5791-.61163-.32193-.40582-.57379-1.1688-.57379-2.3765v-9.7302c-5.9e-5-.58112-.47119-1.0522-1.0523-1.0523h-1.9417c-.58112 5.9e-5-1.0522.47118-1.0523 1.0523v9.8344c0 2.0361.45624 3.7306 1.5291 4.93 1.0728 1.1995 2.6887 1.7601 4.5657 1.7601 1.8967 0 3.5348-.57264 4.6399-1.7829 1.0989-1.2035 1.5906-2.8856 1.5906-4.8652v-9.8977c-5.9e-5-.58112-.47097-1.0522-1.0521-1.0523zm-22.734.02134c-.58112 5.9e-5-1.0522.47118-1.0523 1.0523v15.264c5.9e-5.58112.47119 1.052 1.0523 1.0521h1.9419c.58112-5.9e-5 1.052-.47097 1.0521-1.0521v-4.8883h.94224c1.9992 0 3.6846-.47272 4.8937-1.5487v-.000438c-1.7e-5-9.7e-5 4e-6-.000366 0-.000421 1.1993-1.0615 1.8071-2.6111 1.8071-4.3578 0-1.7001-.56123-3.1944-1.7207-4.1599-1.1595-.96548-2.7634-1.3605-4.6982-1.3605zm2.994 3.7644h1.0467c1.0315 0 1.6537.2212 1.9763.48744.32254.26624.49983.61442.49983 1.3729 0 .86777-.20321 1.2765-.5205 1.5421-.0017.0013-.0034.0029-.0048.0043-.28414.24069-1.0241.50223-2.2747.50223h-.72278zm-45.148.65274a4.209 4.209 0 00-4.209 4.209 4.209 4.209 0 004.209 4.209 4.209 4.209 0 003.6452-2.1046h13.542a2.1047 2.1047 0 001.7979-3.1484 2.1047 2.1047 0 00-1.7979-1.0606h-13.542a4.209 4.209 0 00-3.645-2.1044zm91.582 0a4.209 4.209 0 00-3.6452 2.1044h-13.542a2.1047 2.1047 0 00-1.7979 1.0606 2.1047 2.1047 0 001.7979 3.1484h13.542a4.209 4.209 0 003.6454 2.1046 4.209 4.209 0 004.209-4.209 4.209 4.209 0 00-4.209-4.209zm-85.9 9.961a2.1047 2.1047 0 000 4.209h11.505a2.1047 2.1047 0 001.7979-1.0604 2.1047 2.1047 0 000-2.0872 2.1047 2.1047 0 00-1.7979-1.0614zm68.712 0a2.1047 2.1047 0 00-1.7979 1.0614 2.1047 2.1047 0 000 2.0872 2.1047 2.1047 0 001.7979 1.0604h11.505a2.1047 2.1047 0 000-4.209zm-68.712 7.8575a2.1047 2.1047 0 000 4.209h11.505a2.1047 2.1047 0 001.7979-1.0612 2.1047 2.1047 0 000-2.0874 2.1047 2.1047 0 00-1.7979-1.0603zm68.712 0a2.1047 2.1047 0 00-1.7979 1.0603 2.1047 2.1047 0 000 2.0874 2.1047 2.1047 0 001.7979 1.0612h11.505a2.1047 2.1047 0 000-4.209zm-44.245 12.921a2.1047 2.1047 0 00-1.1167.27602 2.1047 2.1047 0 00-1.0604 1.7977v11.504a2.1047 2.1047 0 004.209 0v-11.504a2.1047 2.1047 0 00-2.032-2.0737zm15.714 0a2.1047 2.1047 0 00-1.1167.27602 2.1047 2.1047 0 00-1.0606 1.7977v13.541a4.209 4.209 0 00-2.1046 3.6454 4.209 4.209 0 004.209 4.209 4.209 4.209 0 004.209-4.209 4.209 4.209 0 00-2.1042-3.6452v-13.542a2.1047 2.1047 0 00-2.032-2.0737zm7.8566 0a2.1047 2.1047 0 00-1.1167.27602 2.1047 2.1047 0 00-1.0606 1.7977v11.504a2.1047 2.1047 0 004.209 0v-11.504a2.1047 2.1047 0 00-2.0317-2.0737zm-15.713.000421a2.1047 2.1047 0 00-1.1165.27559 2.1047 2.1047 0 00-1.0612 1.7977v11.504a2.1047 2.1047 0 001.0612 1.7988 2.1047 2.1047 0 002.0872 0 2.1047 2.1047 0 001.0606-1.7988v-11.504a2.1047 2.1047 0 00-2.0313-2.0733zm23.571 0a2.1047 2.1047 0 00-1.1163.27559 2.1047 2.1047 0 00-1.0614 1.7977v11.504a2.1047 2.1047 0 004.209 0v-11.504a2.1047 2.1047 0 00-2.0313-2.0733z" style="fill:white"/></svg>');
}
}
.tooltip {
background: #000;
color: #fff;
border: 2px solid #333;
position: absolute;
margin: 1em;
padding: 0.25em 0.5em;
z-index: 1;
&:empty {
display: none;
}
& > :first-child { margin-top: 0; }
& > :last-child { margin-bottom: 0; }
table:empty {
display: none;
--unit: none;
}
table td:after {
content: var(--unit);
filter: opacity(0.6);
margin-left: 0.1em;
}
table td:not(:last-child) {
padding-right: 0.5em;
}
.encoding:before {
width: 1lh;
vertical-align: middle;
margin-right: 0.25em;
}
}
.autopush_list {
display: flex;
flex-flow: column nowrap;
}
.autopush_list:before {
content: "Push to:"
}
.autopush_list:empty:after {
content: "Destinations not configured";
font-family: Barlow Condensed, sans-serif;
font-weight: 700;
display: block;
margin: 0.5em 0;
background: #999;
color: #000;
border: 2px solid #000;
padding: 0.5em;
}
#sources .media_elem:hover {
cursor: pointer;
border-color: #555;
}
.media_elem .autopush_list > * {
margin: 0.25em 0;
text-align: left;
cursor: pointer;
background: #fff;
color: #000;
border: 2px solid #000;
padding: 0.5em;
}
.media_elem .autopush_list > *:hover {
filter: brightness(0.8);
opacity: 1;
}
.forced_push {
color: #888 !important;
cursor: not-allowed !important;
}
.inactive_push, .push[data-enabled="false"] {
opacity: 0.6;
}
:is(.active_push, .inactive_push, .push[data-enabled]):before {
content: '➡️';
margin-right: 0.5em;
}
:is(.inactive_push, .push[data-enabled="false"]):before {
content: '💤';
}
.autopush_list .push[data-enabled="false"] {
order: 1;
}
.button_container {
display: flex;
margin: 0 0.25em;
align-items: end;
}
.button_container .button {
margin: 0.5em 0.25em;
flex-grow: 1;
}
.button {
border: 1px solid black;
background: orange;
color: black;
text-align: center;
cursor: pointer;
margin: 0.5em auto;
padding: 0.5em;
}
.button[data-icon]:before {
content: attr(data-icon);
display: inline-block;
font-weight: normal;
margin-right: 0.5em;
}
.media_elem .trash { margin-bottom: 0; }
.trash:before {
font-size: 1.8em;
line-height: 0.5;
margin-right: 0.25em;
transform: translateY(0.06em);
}
#decklink:empty:before {
content: "No decklink-capable device(s) detected.";
margin: 1em;
}
.button:hover {
filter: brightness(0.8);
}
.media_elem.sdi_source > * {
margin: 0.5em;
}
.disabled {
color: red;
font-weight: bold;
}
.disabled:before {
content: '❌';
margin-right: 0.25em;
}
.inactive {
color: #aaa;
}
.inactive:before {
content: '💤';
margin-right: 0.25em;
}
.sdi_source table {
margin: 0 auto;
}
table td {
text-align: left;
vertical-align: top;
}
table td:not(:last-child) {
margin-right: 0.5em;
}
@font-face {
font-family: 'Barlow Condensed';
font-style: normal;
font-weight: normal;
font-display: auto;
src: url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/BarlowCondensed-Regular.woff2') format('woff2'),
url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/BarlowCondensed-Regular.woff') format('woff'),
url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/BarlowCondensed-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Barlow Condensed';
font-style: normal;
font-weight: 700;
font-display: auto;
src: url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/BarlowCondensed-Bold.woff2') format('woff2'),
url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/BarlowCondensed-Bold.woff') format('woff'),
url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/BarlowCondensed-Bold.ttf') format('truetype');
}
@font-face {
font-family: 'Barlow';
font-style: normal;
font-weight: 400;
font-display: auto;
src: url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/Barlow-Regular.woff2') format('woff2'),
url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/Barlow-Regular.woff') format('woff'),
url('https://eslfaceitgroup.com/wp-content/uploads/2022/08/Barlow-Regular.ttf') format('truetype');
}
</style>
<script>
let EFGconfig = {
thumbURL: "http://localhost:8080/"
};
let thumbURL = EFGconfig.thumbURL;
let remoteURL = "http://localhost:4242/api2";
function saveConfig(cfg) {
send({ui_settings: Object.assign(EFGconfig,cfg)}).then((o)=>{
console.log("Config saved",send);
}).catch((e)=>{
console.log("Error while saving config",e);
});
}
const connectionStatus = document.createElement("div");
connectionStatus.classList.add("connection-status");
const versions = document.createElement("div");
versions.classList.add("versions");
versions._values = [false,false];
versions._set = function (index,value) {
if (this._values[index] != value) {
this._values[index] = value;
this.innerText = this._values.filter((v)=>{ return v; }).join(" and ");
}
}
function send(command) {
return new Promise(function(resolve,reject){
connectionStatus.innerText = "Connecting..";
fetch(remoteURL, {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify(command)
}).then((r)=>{
connectionStatus.setAttribute("data-status","connected");
connectionStatus.innerText = "✅ Connected";
if (r.status < 400) {
r.json().then((d)=>{
if (location.hash.includes("debug")) {
console.log(Object.keys(command)[0],"API request successful",{
command: command,
response: d
});
}
resolve(d);
}).catch((e)=>{
connectionStatus.setAttribute("data-status","failed");
connectionStatus.innerText = "❌ Could not parse server response";
reject(e);
});
}
else {
reject("API call received HTTP status "+r.status);
}
}).catch((e)=>{
connectionStatus.setAttribute("data-status","failed");
connectionStatus.innerText = "❌ Failed to connect to server";
reject(e);
});
});
}
let sBar = null
let tBar = null;
function preloadImg(){
let parent = document.createElement("div");
parent.className = "thumbnail";
parent.style.display = "contents";
let src;
parent.setSrc = function(s){
src = new URL(s);
src.searchParams.set("t",(Math.round(new Date().getTime()*1e-3)));
src = src.toString();
if (this.className == "thumbnail") {
//it's not an mjpeg right now
parent.querySelector(".preloader").setAttribute("src",src);
}
}
function moveJPG(){
parent.querySelector("img.preloader").setAttribute("src",src.replace(".jpg",".mjpg"));
parent.className = "thumbnail moving";
}
function stopJPG(){
parent.querySelector("img.preloader").setAttribute("src",src);
parent.className = "thumbnail";
}
parent.addEventListener("mouseenter",function(e){
moveJPG();
});
parent.addEventListener("mouseleave",function(e){
stopJPG();
});
let img = document.createElement('img');
parent.appendChild(img);
let img2 = document.createElement('img');
img2.className = "preloader";
parent.appendChild(img2);
let onload = function(myself,other){
return function(){
this.classList.remove("preloader");
other.classList.add("preloader");
other.removeAttribute("src");
}
};
img.addEventListener("load",onload(img,img2));
img2.addEventListener("load",onload(img2,img));
return parent;
}
function formatBitrate (bps) {
var base = 1000;
var suffix = ['bps','kbps','Mbps','Gbps','Tbps','Pbps','Ebps','Zbps'];
var newval = bps;
var unit;
if (newval == 0) {
unit = suffix[0];
}
else {
var exponent = Math.floor(Math.log(Math.abs(bps)) / Math.log(base));
if (exponent < 0) {
unit = suffix[0];
}
else {
newval = newval / Math.pow(base,exponent);
unit = suffix[exponent];
}
}
newval = new Intl.NumberFormat(undefined,{
maximumSignificantDigits: 3,
useGrouping: "min2"
}).format(newval);
return [newval,unit];
}
function Tooltip(activator,content_func,container) {
let element = document.createElement("div");
element.classList.add("tooltip");
this.element = element;
this.pos = function(pos){
if (!element.offsetParent) return;
var parpos = element.offsetParent.getBoundingClientRect();
var mh = parpos.height - element.clientHeight;
var mw = parpos.width - element.clientWidth;
element.style.left = Math.min(pos.pageX - parpos.x,mw)+"px";
element.style.top = Math.min(pos.pageY - parpos.y,mh)+"px";
};
this.show = function(position){
let content = content_func();
if (typeof content == "string") element.innerHTML = content;
else {
element.innerHTML = "";
element.appendChild(content);
}
element.style.display = "";
if (position) this.pos(position);
};
this.hide = function(){
element.style.display = "none";
element.innerHTML = "";
element.style.left = "";
element.style.top = "";
};
this.remove = function(){
element.parentNode?.removeChild(element);
this.element = null;
};
this.hide();
container.appendChild(element);
activator.addEventListener("mouseover",(e) => {
this.show(e);
});
activator.addEventListener("mousemove",(e) => {
element.style.display = "";
this.pos(e);
});
activator.addEventListener("mouseout",(e) => {
this.hide();
});
}
function addStream(strm){
let sElem = null;
if (!document.getElementById("strm_"+strm.name)){
let sElem = document.createElement('div');
sElem.id = "strm_"+strm.name;
sElem.className = "media_elem";
sElem.setAttribute("data-tags",strm.tags ? strm.tags.join(" ") : "");
let title = document.createElement('p');
title.innerText = strm.name;
title.setAttribute("title",strm.name);
sElem.appendChild(title);
sElem.appendChild(preloadImg());
let hs = document.createElement("h5");
hs.innerText = "Track stats:";
sElem.appendChild(hs);
let tracks = document.createElement("div");
tracks.classList.add("tracks");
sElem.appendChild(tracks);
let packetloss = document.createElement("div");
packetloss.classList.add("packetloss");
sElem.appendChild(packetloss);
let buttons = document.createElement("div");
buttons.className = "button_container titlefont";
let reset = document.createElement("p");
reset.className = "button";
reset.setAttribute("data-icon","↩️");
reset.appendChild(document.createTextNode("Reset"));
reset.title = "Disconnect sessions for this stream. This will kill any currently open connections (viewers, pushes and the input).";
reset.onclick = function(e){
e.stopPropagation();
if (confirm("Are you sure you want to reset '"+strm.name+"'?\nThis will disconnect any currently open connections (viewers, pushes and the input).")) {
send({stop_sessions:strm.name}).then(()=>{
reset.innerText = "Done.";
setTimeout(function(){ reset.innerText = "Reset"; },3e3);
}).catch((e)=>{
reset.innerText = "Failed";
});
}
};
buttons.appendChild(reset);
let nuke = document.createElement("p");
nuke.className = "button";
nuke.setAttribute("data-icon","☢️");
nuke.appendChild(document.createTextNode("Nuke"));
nuke.title = "Shut down a running stream completely and/or clean up any potentially left over stream data in memory. It attempts a clean shutdown of the running stream first, followed by a forced shut down, and then follows up by checking for left over data in memory and cleaning that up if any is found.";
nuke.onclick = function(e){
e.stopPropagation();
if (confirm("Are you sure you want to NUKE '"+strm.name+"'?\nThis will shut down a running stream completely, forcefully disconnecting any viewers, pushes and the input.")) {
send({nuke_stream:strm.name}).then(()=>{
nuke.innerText = "Nuked.";
setTimeout(function(){ nuke.innerText = "Nuke"; },3e3);
}).catch((e)=>{
nuke.innerText = "Failed";
});
}
};
buttons.appendChild(nuke);
sElem.appendChild(buttons);
function clickStream(){
//Remove list if already present
if (this._pushlist){
this._pushlist._remove();
return false;
}
const createPushButton = (autopush) => {
let stream = strm; //Note: only contains information from when this element was created: do not use for things that update, like tags
let button = document.createElement("button");
button.classList.add("push");
button.classList.add("titlefont");
let label = autopush.stream.slice(4).replaceAll("-"," ");
button.appendChild(document.createTextNode(label));
let tags = sElem.getAttribute("data-tags").split(" ");
button.setAttribute("data-enabled",tags.includes(autopush.stream.slice(1)));
button.setAttribute("title",autopush["x-LSP-notes"] ? autopush["x-LSP-notes"] : (button.getAttribute("data-enabled") == "true" ? "Enabled, click to disable" : "Disabled, click to enable" ));
button.addEventListener("click",(e)=>{
//toggle autopush of this stream to this target by adding the tag to the stream (both transient and persistent)
//if this is a wildcard stream insert a new autopush rule instead of the persistent tag
const tag = autopush.stream.slice(1);
if (button.getAttribute("data-enabled") == "true") {
//push is currently active: remove tag and stop active pushes
console.log("Disabling (auto)push of", stream.name, "to", autopush.target, "by removing", autopush.stream, "tag");
let c = { //remove transient tag and request stream config + push list
untag_stream: {
[stream.name]: autopush.stream.slice(1)
},
stream_tags: stream.name,
push_list: true
};
if (stream.name.includes("+")) {
c.push_auto_list = true;
}
else {
c.streams = true;
}
send(c).then((r1)=>{
let command = {};
if (stream.name.includes("+")) {
//remove autopush rule
let remove = [];
for (const id in r1.auto_push) {
const ap = r1.auto_push[id];
if ((ap["x-LSP-notes"] == autopush.stream) && (ap.stream == stream.name)) {
remove.push(id);
}
}
if (remove.length) {
command.push_auto_remove = remove;
}
}
else {
//remove persistent tag
let tagIndex = r1.streams[stream.name].tags.indexOf(tag);
while (tagIndex >= 0) { //remove all if it occurs more than once
r1.streams[stream.name].tags.splice(tagIndex,1);
command.addstream = { [stream.name]: r1.streams[stream.name] };
tagIndex = r1.streams[stream.name].tags.indexOf(tag);
}
}
//stop active pushes that match
if ("push_list" in r1) {
let stop = [];
for (const push of r1.push_list) {
if ((push[1] == stream.name) && (push[2] == autopush.target)) {
stop.push(push[0]);
}
}
if (stop.length) {
console.log("Stopping pushes:",stop);
command.push_stop = stop;
for (const push_id of stop) {
const cont = document.getElementById("push_"+push_id);
if (cont) {
const button = cont.querySelector(".trash");
if (button) {
button.innerText = "Stopping..";
}
}
}
}
}
if (Object.keys(command).length) {
send(command).then((r2)=>{
//Done! Apply taglist to element and close "Push to"-list
sElem.setAttribute("data-tags",r1.stream_tags[stream.name]?.join(" "));
clickStream.call(this);
});
}
else {
//we're done already
sElem.setAttribute("data-tags",r1.stream_tags[stream.name]?.join(" "));
clickStream.call(this);
}
});
}
else {
//push is currently inactive: add tag
//check if something else is already pushing to this target
const alreadyActive = tBar.querySelector(".media_elem[data-target=\""+autopush.target+"\"]");
if (alreadyActive) {
if (!confirm("A push to '" + label + "' is already running from channel '"+alreadyActive.children[0].children[0].innerText+"'!\n\nAre you sure you want to push '"+stream.name+"' there, too?")) { return; }
}
console.log("Enabling (auto)push of", stream.name, "to", autopush.target, "by adding", autopush.stream, "tag");
send({ //add transient tag and request stream config
tag_stream: {
[stream.name]: tag
},
stream_tags: stream.name,
streams: true
}).then((r1)=>{
const finish = () => {
sElem.setAttribute("data-tags",r1.stream_tags[stream.name]?.join(" "));
clickStream.call(this);
}
if (stream.name.includes("+")) {
//add an autopush rule in case the source stream goes offline (and comes back later, but without the transient tag..)
send({
push_auto_add: {
stream: stream.name,
target: autopush.target,
"x-LSP-notes": autopush.stream //contains the tag, including the #
}
}).then((r2)=>{
finish();
});
}
else {
//check if persistent tag already exists
if (!r1.streams[stream.name].tags.includes(tag)) {
r1.streams[stream.name].tags.push(tag);
send({ //add persistent tag
addstream: { [stream.name]: r1.streams[stream.name] }
}).then((r2)=>{
//Done! Apply taglist to element and close "Push to"-list
finish();
});
}
else {
//we're done already
finish();
}
}
});
}
e.stopPropagation();
});
return button;
}
// Fetch current autopush list
send({push_auto_list: true}).then(j => {
let newList = document.createElement('div');
newList.className = "autopush_list";
newList._remove = function(){
delete this.parentNode._pushlist;
this.parentNode.removeChild(this);
};
let seen = [];
if ("auto_push" in j){
for (s in j["auto_push"]){
const ap = j["auto_push"][s];
//display a button for every autopush for which ap.stream starts with "#T1-"
if (ap.stream.slice(0,4) != "#T1-") continue;
newList.appendChild(createPushButton(ap));
}
}
// Remove list if already present, add list to element
if (this._pushlist){this._pushlist._remove();}
this.appendChild(newList);
this._pushlist = newList;
});
}
sElem.onclick = clickStream;
sBar.appendChild(sElem);
}
if(!sElem) sElem = document.getElementById("strm_"+strm.name);
if (sElem) {
sElem.querySelector(".thumbnail").setSrc(thumbURL + strm.name + ".jpg");
if (strm.health) {
let tracks = sElem.querySelector(".tracks");
let seen = {};
var iterator;
if ("tracks" in strm.health) {
iterator = strm.health.tracks;
}
else {
iterator = Object.keys(strm.health);
}
for (let i of iterator) {
if (typeof strm.health[i] == "object") {
seen[i] = 1;
let trackhealth = strm.health[i]
let t = tracks.querySelector("[data-track=\""+i+"\"]");
let fields = {
encoding: false
};
fields.jitter = function (d) {
this.setAttribute("data-warn",d?.jitter < 300 ? "no" : "yes");
return d?.jitter;
};
if (i.slice(0,5) == "video") {
fields.resolution = (d) => d ? [d?.width,d?.height].join("×") : undefined;
fields.fps = function(d) {
if (d) {
if (d.efpks) {
this.setAttribute("data-warn",d.efpks == d.fpks ? "no" : (d.fpks == 0 ? "variable" : "yes"));
return Math.round(d.efpks/10)/100;
}
else {
this.removeAttribute("data-warn");
return Math.round(d.fpks/10)/100;
}
}
}
}
else if (i.slice(0,5) == "audio") {
fields.channels = (d) => d?.channels;
fields.bitrate = function(d) {
if (!d || !d.kbits) return "";
[val,unit] = formatBitrate(d?.kbits * 1024);
this.style.setProperty("--unit","'"+unit+"'");
return val;
};
}
if (!t) {
t = document.createElement("span");
t.setAttribute("data-track",i);
t.setAttribute("data-track-idx",trackhealth.idx);
tracks.appendChild(t);
for (let name in fields) {
let e = document.createElement("span");
e.classList.add(name);
e.setAttribute("title",name);
if (fields[name]) {
e._set = function(d){
let v = fields[name].call(e,d);
if (v != this.innerText) {
this.innerText = v;
}
};
}