@gcorevideo/player 2.28.21 → 2.28.22
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.
- package/dist/core.js +1 -1
- package/dist/index.css +190 -190
- package/dist/index.embed.js +2718 -194
- package/dist/index.js +2719 -195
- package/lib/plugins/subtitles/ClosedCaptions.d.ts +0 -1
- package/lib/plugins/subtitles/ClosedCaptions.d.ts.map +1 -1
- package/lib/plugins/subtitles/ClosedCaptions.js +2 -7
- package/lib/plugins/thumbnails/Thumbnails.d.ts +1 -1
- package/lib/plugins/thumbnails/Thumbnails.js +23 -3
- package/package.json +3 -2
- package/src/plugins/subtitles/ClosedCaptions.ts +2 -8
- package/src/plugins/thumbnails/Thumbnails.ts +35 -4
- package/src/plugins/thumbnails/__tests__/Thumbnails.test.ts +108 -53
- package/src/plugins/thumbnails/__tests__/__snapshots__/Thumbnails.test.ts.snap +37 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/src/plugins/typings/parse-srt.d.ts +0 -14
package/dist/core.js
CHANGED
|
@@ -51319,7 +51319,7 @@ class Player {
|
|
|
51319
51319
|
}
|
|
51320
51320
|
}
|
|
51321
51321
|
|
|
51322
|
-
var version$1 = "2.28.
|
|
51322
|
+
var version$1 = "2.28.22";
|
|
51323
51323
|
|
|
51324
51324
|
var packages = {
|
|
51325
51325
|
"node_modules/@clappr/core": {
|
package/dist/index.css
CHANGED
|
@@ -643,6 +643,42 @@
|
|
|
643
643
|
.fullscreen .clappr-nerd-stats .stats-box {
|
|
644
644
|
top: unset;
|
|
645
645
|
}
|
|
646
|
+
}.context-menu {
|
|
647
|
+
z-index: 999;
|
|
648
|
+
position: absolute;
|
|
649
|
+
top: 0;
|
|
650
|
+
left: 0;
|
|
651
|
+
text-align: center;
|
|
652
|
+
}
|
|
653
|
+
.context-menu .context-menu-list {
|
|
654
|
+
font-family: "Proxima Nova", sans-serif;
|
|
655
|
+
font-size: 12px;
|
|
656
|
+
line-height: 12px;
|
|
657
|
+
list-style-type: none;
|
|
658
|
+
text-align: left;
|
|
659
|
+
padding: 5px;
|
|
660
|
+
margin-left: auto;
|
|
661
|
+
margin-right: auto;
|
|
662
|
+
background-color: rgba(0, 0, 0, 0.75);
|
|
663
|
+
border: 1px solid #666;
|
|
664
|
+
border-radius: 4px;
|
|
665
|
+
}
|
|
666
|
+
.context-menu .context-menu-list-item button {
|
|
667
|
+
border: none;
|
|
668
|
+
background-color: transparent;
|
|
669
|
+
padding: 0;
|
|
670
|
+
color: white;
|
|
671
|
+
display: flex;
|
|
672
|
+
gap: 8px;
|
|
673
|
+
align-items: center;
|
|
674
|
+
justify-content: center;
|
|
675
|
+
cursor: pointer;
|
|
676
|
+
padding: 5px;
|
|
677
|
+
width: 100%;
|
|
678
|
+
}
|
|
679
|
+
.context-menu .context-menu-list-item_icon {
|
|
680
|
+
width: 20px;
|
|
681
|
+
height: 20px;
|
|
646
682
|
}@charset "UTF-8";
|
|
647
683
|
.gplayer-mc-clips {
|
|
648
684
|
display: flex;
|
|
@@ -757,42 +793,141 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
|
|
|
757
793
|
.dvr-controls .live-button:hover {
|
|
758
794
|
opacity: 1;
|
|
759
795
|
text-shadow: rgba(255, 255, 255, 0.75) 0 0 5px;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
left: 0;
|
|
765
|
-
text-align: center;
|
|
796
|
+
}*,
|
|
797
|
+
:focus,
|
|
798
|
+
:visited {
|
|
799
|
+
outline: none !important;
|
|
766
800
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
margin-left: auto;
|
|
775
|
-
margin-right: auto;
|
|
776
|
-
background-color: rgba(0, 0, 0, 0.75);
|
|
777
|
-
border: 1px solid #666;
|
|
778
|
-
border-radius: 4px;
|
|
801
|
+
|
|
802
|
+
.multicamera[data-multicamera] {
|
|
803
|
+
float: right;
|
|
804
|
+
margin-top: 4px;
|
|
805
|
+
position: relative;
|
|
806
|
+
margin-right: 20px;
|
|
807
|
+
width: 20px;
|
|
779
808
|
}
|
|
780
|
-
.
|
|
781
|
-
border: none;
|
|
809
|
+
.multicamera[data-multicamera] button {
|
|
782
810
|
background-color: transparent;
|
|
811
|
+
color: #fff;
|
|
812
|
+
font-family: Roboto, "Open Sans", Arial, sans-serif;
|
|
813
|
+
-webkit-font-smoothing: antialiased;
|
|
814
|
+
border: none;
|
|
815
|
+
font-size: 14px;
|
|
783
816
|
padding: 0;
|
|
784
|
-
|
|
817
|
+
}
|
|
818
|
+
.multicamera[data-multicamera] button svg {
|
|
819
|
+
height: 20px;
|
|
820
|
+
position: relative;
|
|
821
|
+
margin-top: 6px;
|
|
822
|
+
}
|
|
823
|
+
.multicamera[data-multicamera] button:hover {
|
|
824
|
+
color: #c9c9c9;
|
|
825
|
+
}
|
|
826
|
+
.multicamera[data-multicamera] button.changing {
|
|
827
|
+
animation: pulse 0.5s infinite alternate;
|
|
828
|
+
}
|
|
829
|
+
.multicamera[data-multicamera] button span.quality-arrow {
|
|
830
|
+
width: 9px;
|
|
831
|
+
height: 6px;
|
|
832
|
+
margin-top: 11px;
|
|
833
|
+
margin-left: 5px;
|
|
834
|
+
}
|
|
835
|
+
.multicamera[data-multicamera] > ul {
|
|
836
|
+
padding: 6px 0;
|
|
837
|
+
right: -24px;
|
|
838
|
+
width: 245px;
|
|
839
|
+
list-style-type: none;
|
|
840
|
+
position: absolute;
|
|
841
|
+
bottom: 48px;
|
|
842
|
+
border-radius: 4px;
|
|
843
|
+
display: none;
|
|
844
|
+
background-color: rgba(74, 74, 74, 0.9);
|
|
845
|
+
}
|
|
846
|
+
.multicamera[data-multicamera] > ul::after {
|
|
847
|
+
content: "";
|
|
848
|
+
position: absolute;
|
|
849
|
+
top: 100%;
|
|
850
|
+
left: 85%;
|
|
851
|
+
margin-left: -10px;
|
|
852
|
+
width: 0;
|
|
853
|
+
height: 0;
|
|
854
|
+
border-top: 10px solid rgba(74, 74, 74, 0.9);
|
|
855
|
+
border-right: 10px solid transparent;
|
|
856
|
+
border-left: 10px solid transparent;
|
|
857
|
+
}
|
|
858
|
+
.multicamera[data-multicamera] li {
|
|
859
|
+
font-size: 10px;
|
|
860
|
+
cursor: pointer;
|
|
861
|
+
}
|
|
862
|
+
.multicamera[data-multicamera] li .multicamera-item {
|
|
785
863
|
display: flex;
|
|
786
|
-
|
|
787
|
-
align-items: center;
|
|
864
|
+
padding: 10px 0;
|
|
788
865
|
justify-content: center;
|
|
789
|
-
|
|
790
|
-
padding: 5px;
|
|
791
|
-
width: 100%;
|
|
866
|
+
position: relative;
|
|
792
867
|
}
|
|
793
|
-
.
|
|
794
|
-
|
|
868
|
+
.multicamera[data-multicamera] li .multicamera-item[data-mulitcamera-selector-live=false] .multicamera-screenshot {
|
|
869
|
+
opacity: 0.5;
|
|
870
|
+
}
|
|
871
|
+
.multicamera[data-multicamera] li .multicamera-item[data-mulitcamera-selector-live=false] .multicamera-text {
|
|
872
|
+
opacity: 0.5;
|
|
873
|
+
}
|
|
874
|
+
.multicamera[data-multicamera] li .multicamera-item[data-mulitcamera-selector-live=false]:hover {
|
|
875
|
+
background-color: rgba(0, 0, 0, 0);
|
|
876
|
+
}
|
|
877
|
+
.multicamera[data-multicamera] li .multicamera-item[data-mulitcamera-selector-live=false] {
|
|
878
|
+
pointer-events: none;
|
|
879
|
+
}
|
|
880
|
+
.multicamera[data-multicamera] li .multicamera-item:hover, .multicamera[data-multicamera] li .multicamera-item.multicamera-active {
|
|
881
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
882
|
+
}
|
|
883
|
+
.multicamera[data-multicamera] li .multicamera-item .multicamera-screenshot {
|
|
884
|
+
width: 80px;
|
|
885
|
+
height: 60px;
|
|
886
|
+
}
|
|
887
|
+
.multicamera[data-multicamera] li .multicamera-item .multicamera-screenshot img {
|
|
888
|
+
width: 80px;
|
|
889
|
+
height: 60px;
|
|
890
|
+
}
|
|
891
|
+
.multicamera[data-multicamera] li .multicamera-item .multicamera-text {
|
|
892
|
+
width: 120px;
|
|
893
|
+
text-align: left;
|
|
894
|
+
margin-left: 15px;
|
|
895
|
+
}
|
|
896
|
+
.multicamera[data-multicamera] li .multicamera-item .multicamera-text .multicamera-title,
|
|
897
|
+
.multicamera[data-multicamera] li .multicamera-item .multicamera-text .multicamera-description {
|
|
898
|
+
width: 120px;
|
|
795
899
|
height: 20px;
|
|
900
|
+
font-family: Roboto, "Open Sans", Arial, sans-serif;
|
|
901
|
+
font-size: 14px;
|
|
902
|
+
font-weight: normal;
|
|
903
|
+
font-style: normal;
|
|
904
|
+
font-stretch: normal;
|
|
905
|
+
line-height: 1.43;
|
|
906
|
+
letter-spacing: normal;
|
|
907
|
+
text-align: left;
|
|
908
|
+
color: #fff;
|
|
909
|
+
text-overflow: ellipsis;
|
|
910
|
+
overflow: hidden;
|
|
911
|
+
}
|
|
912
|
+
.multicamera[data-multicamera] li .multicamera-item .multicamera-text .multicamera-description {
|
|
913
|
+
opacity: 0.6;
|
|
914
|
+
}
|
|
915
|
+
.multicamera[data-multicamera] li a {
|
|
916
|
+
color: #444;
|
|
917
|
+
padding: 2px 10px;
|
|
918
|
+
display: block;
|
|
919
|
+
text-decoration: none;
|
|
920
|
+
}
|
|
921
|
+
.multicamera[data-multicamera] li a:hover {
|
|
922
|
+
background-color: #555;
|
|
923
|
+
color: white;
|
|
924
|
+
}
|
|
925
|
+
.multicamera[data-multicamera] li a:hover a {
|
|
926
|
+
color: white;
|
|
927
|
+
text-decoration: none;
|
|
928
|
+
}
|
|
929
|
+
.multicamera[data-multicamera] li.current a {
|
|
930
|
+
color: #f00;
|
|
796
931
|
}.media-control-skin-1 .media-control-item.media-control-pip {
|
|
797
932
|
order: 95;
|
|
798
933
|
}
|
|
@@ -1422,141 +1557,40 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
|
|
|
1422
1557
|
100% {
|
|
1423
1558
|
color: #B80000;
|
|
1424
1559
|
}
|
|
1425
|
-
}
|
|
1426
|
-
:focus,
|
|
1427
|
-
:visited {
|
|
1428
|
-
outline: none !important;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
.multicamera[data-multicamera] {
|
|
1432
|
-
float: right;
|
|
1433
|
-
margin-top: 4px;
|
|
1434
|
-
position: relative;
|
|
1435
|
-
margin-right: 20px;
|
|
1436
|
-
width: 20px;
|
|
1437
|
-
}
|
|
1438
|
-
.multicamera[data-multicamera] button {
|
|
1439
|
-
background-color: transparent;
|
|
1440
|
-
color: #fff;
|
|
1441
|
-
font-family: Roboto, "Open Sans", Arial, sans-serif;
|
|
1442
|
-
-webkit-font-smoothing: antialiased;
|
|
1443
|
-
border: none;
|
|
1444
|
-
font-size: 14px;
|
|
1445
|
-
padding: 0;
|
|
1446
|
-
}
|
|
1447
|
-
.multicamera[data-multicamera] button svg {
|
|
1448
|
-
height: 20px;
|
|
1449
|
-
position: relative;
|
|
1450
|
-
margin-top: 6px;
|
|
1451
|
-
}
|
|
1452
|
-
.multicamera[data-multicamera] button:hover {
|
|
1453
|
-
color: #c9c9c9;
|
|
1454
|
-
}
|
|
1455
|
-
.multicamera[data-multicamera] button.changing {
|
|
1456
|
-
animation: pulse 0.5s infinite alternate;
|
|
1457
|
-
}
|
|
1458
|
-
.multicamera[data-multicamera] button span.quality-arrow {
|
|
1459
|
-
width: 9px;
|
|
1460
|
-
height: 6px;
|
|
1461
|
-
margin-top: 11px;
|
|
1462
|
-
margin-left: 5px;
|
|
1463
|
-
}
|
|
1464
|
-
.multicamera[data-multicamera] > ul {
|
|
1465
|
-
padding: 6px 0;
|
|
1466
|
-
right: -24px;
|
|
1467
|
-
width: 245px;
|
|
1468
|
-
list-style-type: none;
|
|
1469
|
-
position: absolute;
|
|
1470
|
-
bottom: 48px;
|
|
1471
|
-
border-radius: 4px;
|
|
1472
|
-
display: none;
|
|
1473
|
-
background-color: rgba(74, 74, 74, 0.9);
|
|
1474
|
-
}
|
|
1475
|
-
.multicamera[data-multicamera] > ul::after {
|
|
1476
|
-
content: "";
|
|
1477
|
-
position: absolute;
|
|
1478
|
-
top: 100%;
|
|
1479
|
-
left: 85%;
|
|
1480
|
-
margin-left: -10px;
|
|
1481
|
-
width: 0;
|
|
1482
|
-
height: 0;
|
|
1483
|
-
border-top: 10px solid rgba(74, 74, 74, 0.9);
|
|
1484
|
-
border-right: 10px solid transparent;
|
|
1485
|
-
border-left: 10px solid transparent;
|
|
1486
|
-
}
|
|
1487
|
-
.multicamera[data-multicamera] li {
|
|
1488
|
-
font-size: 10px;
|
|
1489
|
-
cursor: pointer;
|
|
1490
|
-
}
|
|
1491
|
-
.multicamera[data-multicamera] li .multicamera-item {
|
|
1560
|
+
}.player-poster {
|
|
1492
1561
|
display: flex;
|
|
1493
|
-
padding: 10px 0;
|
|
1494
1562
|
justify-content: center;
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
background-
|
|
1505
|
-
|
|
1506
|
-
.multicamera[data-multicamera] li .multicamera-item[data-mulitcamera-selector-live=false] {
|
|
1507
|
-
pointer-events: none;
|
|
1508
|
-
}
|
|
1509
|
-
.multicamera[data-multicamera] li .multicamera-item:hover, .multicamera[data-multicamera] li .multicamera-item.multicamera-active {
|
|
1510
|
-
background-color: rgba(0, 0, 0, 0.3);
|
|
1511
|
-
}
|
|
1512
|
-
.multicamera[data-multicamera] li .multicamera-item .multicamera-screenshot {
|
|
1513
|
-
width: 80px;
|
|
1514
|
-
height: 60px;
|
|
1515
|
-
}
|
|
1516
|
-
.multicamera[data-multicamera] li .multicamera-item .multicamera-screenshot img {
|
|
1517
|
-
width: 80px;
|
|
1518
|
-
height: 60px;
|
|
1519
|
-
}
|
|
1520
|
-
.multicamera[data-multicamera] li .multicamera-item .multicamera-text {
|
|
1521
|
-
width: 120px;
|
|
1522
|
-
text-align: left;
|
|
1523
|
-
margin-left: 15px;
|
|
1524
|
-
}
|
|
1525
|
-
.multicamera[data-multicamera] li .multicamera-item .multicamera-text .multicamera-title,
|
|
1526
|
-
.multicamera[data-multicamera] li .multicamera-item .multicamera-text .multicamera-description {
|
|
1527
|
-
width: 120px;
|
|
1528
|
-
height: 20px;
|
|
1529
|
-
font-family: Roboto, "Open Sans", Arial, sans-serif;
|
|
1530
|
-
font-size: 14px;
|
|
1531
|
-
font-weight: normal;
|
|
1532
|
-
font-style: normal;
|
|
1533
|
-
font-stretch: normal;
|
|
1534
|
-
line-height: 1.43;
|
|
1535
|
-
letter-spacing: normal;
|
|
1536
|
-
text-align: left;
|
|
1537
|
-
color: #fff;
|
|
1538
|
-
text-overflow: ellipsis;
|
|
1539
|
-
overflow: hidden;
|
|
1563
|
+
align-items: center;
|
|
1564
|
+
position: absolute;
|
|
1565
|
+
height: 100%;
|
|
1566
|
+
width: 100%;
|
|
1567
|
+
z-index: 998;
|
|
1568
|
+
top: 0;
|
|
1569
|
+
left: 0;
|
|
1570
|
+
background-color: #000;
|
|
1571
|
+
background-size: cover;
|
|
1572
|
+
background-repeat: no-repeat;
|
|
1573
|
+
background-position: 50% 50%;
|
|
1540
1574
|
}
|
|
1541
|
-
.
|
|
1542
|
-
|
|
1575
|
+
.player-poster.clickable {
|
|
1576
|
+
cursor: pointer;
|
|
1543
1577
|
}
|
|
1544
|
-
.
|
|
1545
|
-
|
|
1546
|
-
padding: 2px 10px;
|
|
1547
|
-
display: block;
|
|
1548
|
-
text-decoration: none;
|
|
1578
|
+
.player-poster:hover .play-wrapper {
|
|
1579
|
+
opacity: 1;
|
|
1549
1580
|
}
|
|
1550
|
-
.
|
|
1551
|
-
|
|
1552
|
-
|
|
1581
|
+
.player-poster .play-wrapper {
|
|
1582
|
+
width: 100%;
|
|
1583
|
+
height: 25%;
|
|
1584
|
+
margin: 0 auto;
|
|
1585
|
+
opacity: 0.75;
|
|
1586
|
+
transition: opacity 0.1s ease;
|
|
1553
1587
|
}
|
|
1554
|
-
.
|
|
1555
|
-
|
|
1556
|
-
|
|
1588
|
+
.player-poster .play-wrapper svg {
|
|
1589
|
+
height: 100%;
|
|
1590
|
+
display: inline;
|
|
1557
1591
|
}
|
|
1558
|
-
.
|
|
1559
|
-
|
|
1592
|
+
.player-poster .play-wrapper svg path {
|
|
1593
|
+
fill: #fff;
|
|
1560
1594
|
}.quality-levels li.disabled {
|
|
1561
1595
|
opacity: 0.5;
|
|
1562
1596
|
pointer-events: none;
|
|
@@ -1700,40 +1734,6 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
|
|
|
1700
1734
|
.mc-skip-time .skip-container .skip-item {
|
|
1701
1735
|
flex: 1 0 0px;
|
|
1702
1736
|
height: 100%;
|
|
1703
|
-
}.player-poster {
|
|
1704
|
-
display: flex;
|
|
1705
|
-
justify-content: center;
|
|
1706
|
-
align-items: center;
|
|
1707
|
-
position: absolute;
|
|
1708
|
-
height: 100%;
|
|
1709
|
-
width: 100%;
|
|
1710
|
-
z-index: 998;
|
|
1711
|
-
top: 0;
|
|
1712
|
-
left: 0;
|
|
1713
|
-
background-color: #000;
|
|
1714
|
-
background-size: cover;
|
|
1715
|
-
background-repeat: no-repeat;
|
|
1716
|
-
background-position: 50% 50%;
|
|
1717
|
-
}
|
|
1718
|
-
.player-poster.clickable {
|
|
1719
|
-
cursor: pointer;
|
|
1720
|
-
}
|
|
1721
|
-
.player-poster:hover .play-wrapper {
|
|
1722
|
-
opacity: 1;
|
|
1723
|
-
}
|
|
1724
|
-
.player-poster .play-wrapper {
|
|
1725
|
-
width: 100%;
|
|
1726
|
-
height: 25%;
|
|
1727
|
-
margin: 0 auto;
|
|
1728
|
-
opacity: 0.75;
|
|
1729
|
-
transition: opacity 0.1s ease;
|
|
1730
|
-
}
|
|
1731
|
-
.player-poster .play-wrapper svg {
|
|
1732
|
-
height: 100%;
|
|
1733
|
-
display: inline;
|
|
1734
|
-
}
|
|
1735
|
-
.player-poster .play-wrapper svg path {
|
|
1736
|
-
fill: #fff;
|
|
1737
1737
|
}.spinner-three-bounce[data-spinner] {
|
|
1738
1738
|
position: absolute;
|
|
1739
1739
|
width: 70px;
|