@gcorevideo/player 2.28.8 → 2.28.10

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 CHANGED
@@ -49957,7 +49957,7 @@ class Player {
49957
49957
  }
49958
49958
  }
49959
49959
 
49960
- var version$1 = "2.28.8";
49960
+ var version$1 = "2.28.10";
49961
49961
 
49962
49962
  var packages = {
49963
49963
  "node_modules/@clappr/core": {
package/dist/index.css CHANGED
@@ -661,6 +661,40 @@
661
661
  }
662
662
  .gplayer-mc-clips .gplayer-mc-clips-text.compact {
663
663
  max-width: 100px;
664
+ }div.player-error-screen, [data-player] div.player-error-screen {
665
+ color: #CCCACA;
666
+ position: absolute;
667
+ top: 0;
668
+ height: 100%;
669
+ width: 100%;
670
+ background-color: rgba(0, 0, 0, 0.7);
671
+ z-index: 2000;
672
+ display: flex;
673
+ flex-direction: column;
674
+ justify-content: center;
675
+ }
676
+ div.player-error-screen__content[data-error-screen], [data-player] div.player-error-screen__content[data-error-screen] {
677
+ font-size: 14px;
678
+ color: #CCCACA;
679
+ margin-top: 45px;
680
+ }
681
+ div.player-error-screen__title[data-error-screen], [data-player] div.player-error-screen__title[data-error-screen] {
682
+ font-weight: bold;
683
+ line-height: 30px;
684
+ font-size: 18px;
685
+ }
686
+ div.player-error-screen__message[data-error-screen], [data-player] div.player-error-screen__message[data-error-screen] {
687
+ width: 90%;
688
+ margin: 0 auto;
689
+ }
690
+ div.player-error-screen__code[data-error-screen], [data-player] div.player-error-screen__code[data-error-screen] {
691
+ font-size: 13px;
692
+ margin-top: 15px;
693
+ }
694
+ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
695
+ cursor: pointer;
696
+ width: 30px;
697
+ margin: 15px auto 0;
664
698
  }.context-menu {
665
699
  z-index: 999;
666
700
  position: absolute;
@@ -754,40 +788,40 @@
754
788
  .dvr-controls .live-button:hover {
755
789
  opacity: 1;
756
790
  text-shadow: rgba(255, 255, 255, 0.75) 0 0 5px;
757
- }div.player-error-screen, [data-player] div.player-error-screen {
758
- color: #CCCACA;
791
+ }.player-poster {
792
+ display: flex;
793
+ justify-content: center;
794
+ align-items: center;
759
795
  position: absolute;
760
- top: 0;
761
796
  height: 100%;
762
797
  width: 100%;
763
- background-color: rgba(0, 0, 0, 0.7);
764
- z-index: 2000;
765
- display: flex;
766
- flex-direction: column;
767
- justify-content: center;
798
+ z-index: 998;
799
+ top: 0;
800
+ left: 0;
801
+ background-color: #000;
802
+ background-size: cover;
803
+ background-repeat: no-repeat;
804
+ background-position: 50% 50%;
768
805
  }
769
- div.player-error-screen__content[data-error-screen], [data-player] div.player-error-screen__content[data-error-screen] {
770
- font-size: 14px;
771
- color: #CCCACA;
772
- margin-top: 45px;
806
+ .player-poster.clickable {
807
+ cursor: pointer;
773
808
  }
774
- div.player-error-screen__title[data-error-screen], [data-player] div.player-error-screen__title[data-error-screen] {
775
- font-weight: bold;
776
- line-height: 30px;
777
- font-size: 18px;
809
+ .player-poster:hover .play-wrapper {
810
+ opacity: 1;
778
811
  }
779
- div.player-error-screen__message[data-error-screen], [data-player] div.player-error-screen__message[data-error-screen] {
780
- width: 90%;
812
+ .player-poster .play-wrapper {
813
+ width: 100%;
814
+ height: 25%;
781
815
  margin: 0 auto;
816
+ opacity: 0.75;
817
+ transition: opacity 0.1s ease;
782
818
  }
783
- div.player-error-screen__code[data-error-screen], [data-player] div.player-error-screen__code[data-error-screen] {
784
- font-size: 13px;
785
- margin-top: 15px;
819
+ .player-poster .play-wrapper svg {
820
+ height: 100%;
821
+ display: inline;
786
822
  }
787
- div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
788
- cursor: pointer;
789
- width: 30px;
790
- margin: 15px auto 0;
823
+ .player-poster .play-wrapper svg path {
824
+ fill: #fff;
791
825
  }*,
792
826
  :focus,
793
827
  :visited {
@@ -923,48 +957,6 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
923
957
  }
924
958
  .multicamera[data-multicamera] li.current a {
925
959
  color: #f00;
926
- }.player-poster {
927
- display: flex;
928
- justify-content: center;
929
- align-items: center;
930
- position: absolute;
931
- height: 100%;
932
- width: 100%;
933
- z-index: 998;
934
- top: 0;
935
- left: 0;
936
- background-color: #000;
937
- background-size: cover;
938
- background-repeat: no-repeat;
939
- background-position: 50% 50%;
940
- }
941
- .player-poster.clickable {
942
- cursor: pointer;
943
- }
944
- .player-poster:hover .play-wrapper {
945
- opacity: 1;
946
- }
947
- .player-poster .play-wrapper {
948
- width: 100%;
949
- height: 25%;
950
- margin: 0 auto;
951
- opacity: 0.75;
952
- transition: opacity 0.1s ease;
953
- }
954
- .player-poster .play-wrapper svg {
955
- height: 100%;
956
- display: inline;
957
- }
958
- .player-poster .play-wrapper svg path {
959
- fill: #fff;
960
- }.media-control-skin-1 .media-control-item.media-control-pip {
961
- order: 95;
962
- }
963
- .media-control-skin-1 .media-control-item.media-control-pip button {
964
- height: 20px;
965
- }
966
- .media-control-skin-1 .media-control-item.media-control-pip button svg {
967
- height: 20px;
968
960
  }[data-player] {
969
961
  --bottom-panel: 40px;
970
962
  }
@@ -1586,6 +1578,14 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
1586
1578
  100% {
1587
1579
  color: #B80000;
1588
1580
  }
1581
+ }.media-control-skin-1 .media-control-item.media-control-pip {
1582
+ order: 95;
1583
+ }
1584
+ .media-control-skin-1 .media-control-item.media-control-pip button {
1585
+ height: 20px;
1586
+ }
1587
+ .media-control-skin-1 .media-control-item.media-control-pip button svg {
1588
+ height: 20px;
1589
1589
  }.quality-levels li.disabled {
1590
1590
  opacity: 0.5;
1591
1591
  pointer-events: none;
@@ -1646,44 +1646,6 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
1646
1646
  .mc-skip-time .skip-container .skip-item {
1647
1647
  flex: 1 0 0px;
1648
1648
  height: 100%;
1649
- }.spinner-three-bounce[data-spinner] {
1650
- position: absolute;
1651
- width: 70px;
1652
- text-align: center;
1653
- z-index: 999;
1654
- left: 0;
1655
- right: 0;
1656
- margin: 0 auto;
1657
- margin-left: auto;
1658
- margin-right: auto;
1659
- /* center vertically */
1660
- top: 50%;
1661
- transform: translateY(-50%);
1662
- }
1663
- .spinner-three-bounce[data-spinner] > div {
1664
- width: 18px;
1665
- height: 18px;
1666
- background-color: #FFF;
1667
- border-radius: 100%;
1668
- display: inline-block;
1669
- animation: bouncedelay 1.4s infinite ease-in-out;
1670
- /* Prevent first frame from flickering when animation starts */
1671
- animation-fill-mode: both;
1672
- }
1673
- .spinner-three-bounce[data-spinner] [data-bounce1] {
1674
- animation-delay: -0.32s;
1675
- }
1676
- .spinner-three-bounce[data-spinner] [data-bounce2] {
1677
- animation-delay: -0.16s;
1678
- }
1679
-
1680
- @keyframes bouncedelay {
1681
- 0%, 80%, 100% {
1682
- transform: scale(0);
1683
- }
1684
- 40% {
1685
- transform: scale(1);
1686
- }
1687
1649
  }.share_plugin[data-share] {
1688
1650
  pointer-events: auto;
1689
1651
  z-index: 5;
@@ -1767,6 +1729,91 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
1767
1729
  display: inline-block;
1768
1730
  margin-right: 5px;
1769
1731
  cursor: pointer;
1732
+ }.spinner-three-bounce[data-spinner] {
1733
+ position: absolute;
1734
+ width: 70px;
1735
+ text-align: center;
1736
+ z-index: 999;
1737
+ left: 0;
1738
+ right: 0;
1739
+ margin: 0 auto;
1740
+ margin-left: auto;
1741
+ margin-right: auto;
1742
+ /* center vertically */
1743
+ top: 50%;
1744
+ transform: translateY(-50%);
1745
+ }
1746
+ .spinner-three-bounce[data-spinner] > div {
1747
+ width: 18px;
1748
+ height: 18px;
1749
+ background-color: #FFF;
1750
+ border-radius: 100%;
1751
+ display: inline-block;
1752
+ animation: bouncedelay 1.4s infinite ease-in-out;
1753
+ /* Prevent first frame from flickering when animation starts */
1754
+ animation-fill-mode: both;
1755
+ }
1756
+ .spinner-three-bounce[data-spinner] [data-bounce1] {
1757
+ animation-delay: -0.32s;
1758
+ }
1759
+ .spinner-three-bounce[data-spinner] [data-bounce2] {
1760
+ animation-delay: -0.16s;
1761
+ }
1762
+
1763
+ @keyframes bouncedelay {
1764
+ 0%, 80%, 100% {
1765
+ transform: scale(0);
1766
+ }
1767
+ 40% {
1768
+ transform: scale(1);
1769
+ }
1770
+ }.media-control-skin-1 .media-control-cc button.media-control-button {
1771
+ display: flex;
1772
+ justify-content: center;
1773
+ padding: 0;
1774
+ align-items: center;
1775
+ vertical-align: top;
1776
+ }
1777
+ .media-control-skin-1 .media-control-cc button.media-control-button:hover {
1778
+ color: white;
1779
+ }
1780
+ .media-control-skin-1 .media-control-cc ul li {
1781
+ text-align: center;
1782
+ }
1783
+ .media-control-skin-1 .media-control-cc ul li a {
1784
+ height: 30px;
1785
+ padding: 5px 10px;
1786
+ color: #fffffe;
1787
+ }
1788
+ .media-control-skin-1 .media-control-cc ul li a:hover {
1789
+ background-color: rgba(0, 0, 0, 0.4);
1790
+ }
1791
+ .media-control-skin-1 .media-control-cc ul li.current a {
1792
+ background-color: rgba(0, 0, 0, 0.4);
1793
+ }
1794
+ .media-control-skin-1 .media-control-cc ul li:first-child a {
1795
+ border-bottom-left-radius: 4px;
1796
+ border-bottom-right-radius: 4px;
1797
+ }
1798
+ .media-control-skin-1 .media-control-cc ul li:last-child a {
1799
+ border-top-left-radius: 4px;
1800
+ border-top-right-radius: 4px;
1801
+ }
1802
+ .media-control-skin-1 .media-control-cc {
1803
+ position: relative;
1804
+ order: 85;
1805
+ }
1806
+
1807
+ .container .gplayer-cc-line {
1808
+ position: absolute;
1809
+ bottom: calc(var(--bottom-panel) + 5px);
1810
+ width: 100%;
1811
+ }
1812
+ .container .gplayer-cc-line p {
1813
+ width: auto;
1814
+ background-color: rgba(0, 0, 0, 0.4);
1815
+ color: white;
1816
+ display: inline-block;
1770
1817
  }.scrub-thumbnails {
1771
1818
  position: absolute;
1772
1819
  bottom: 52px;
@@ -1830,53 +1877,6 @@ div.player-error-screen__reload, [data-player] div.player-error-screen__reload {
1830
1877
  }
1831
1878
  .scrub-thumbnails .backdrop .carousel img {
1832
1879
  width: auto;
1833
- }.media-control-skin-1 .media-control-cc button.media-control-button {
1834
- display: flex;
1835
- justify-content: center;
1836
- padding: 0;
1837
- align-items: center;
1838
- vertical-align: top;
1839
- }
1840
- .media-control-skin-1 .media-control-cc button.media-control-button:hover {
1841
- color: white;
1842
- }
1843
- .media-control-skin-1 .media-control-cc ul li {
1844
- text-align: center;
1845
- }
1846
- .media-control-skin-1 .media-control-cc ul li a {
1847
- height: 30px;
1848
- padding: 5px 10px;
1849
- color: #fffffe;
1850
- }
1851
- .media-control-skin-1 .media-control-cc ul li a:hover {
1852
- background-color: rgba(0, 0, 0, 0.4);
1853
- }
1854
- .media-control-skin-1 .media-control-cc ul li.current a {
1855
- background-color: rgba(0, 0, 0, 0.4);
1856
- }
1857
- .media-control-skin-1 .media-control-cc ul li:first-child a {
1858
- border-bottom-left-radius: 4px;
1859
- border-bottom-right-radius: 4px;
1860
- }
1861
- .media-control-skin-1 .media-control-cc ul li:last-child a {
1862
- border-top-left-radius: 4px;
1863
- border-top-right-radius: 4px;
1864
- }
1865
- .media-control-skin-1 .media-control-cc {
1866
- position: relative;
1867
- order: 85;
1868
- }
1869
-
1870
- .container .gplayer-cc-line {
1871
- position: absolute;
1872
- bottom: calc(var(--bottom-panel) + 5px);
1873
- width: 100%;
1874
- }
1875
- .container .gplayer-cc-line p {
1876
- width: auto;
1877
- background-color: rgba(0, 0, 0, 0.4);
1878
- color: white;
1879
- display: inline-block;
1880
1880
  }.player-logo[data-logo] {
1881
1881
  position: absolute;
1882
1882
  z-index: 2;
@@ -51689,7 +51689,8 @@ class BigMuteButton extends UICorePlugin {
51689
51689
  this.destroy();
51690
51690
  }
51691
51691
  }
51692
- onStop(_, { ui }) {
51692
+ onStop(_, metadata) {
51693
+ const ui = metadata?.ui;
51693
51694
  if (ui) {
51694
51695
  this.destroy();
51695
51696
  }
package/dist/index.js CHANGED
@@ -50043,7 +50043,7 @@ class Player {
50043
50043
  }
50044
50044
  }
50045
50045
 
50046
- var version$1 = "2.28.8";
50046
+ var version$1 = "2.28.10";
50047
50047
 
50048
50048
  var packages = {
50049
50049
  "node_modules/@clappr/core": {
@@ -51875,7 +51875,8 @@ class BigMuteButton extends UICorePlugin {
51875
51875
  this.destroy();
51876
51876
  }
51877
51877
  }
51878
- onStop(_, { ui }) {
51878
+ onStop(_, metadata) {
51879
+ const ui = metadata?.ui;
51879
51880
  trace(`${T$9} onStop`, { ui });
51880
51881
  if (ui) {
51881
51882
  this.destroy();
@@ -1 +1 @@
1
- {"version":3,"file":"BigMuteButton.d.ts","sourceRoot":"","sources":["../../../src/plugins/big-mute-button/BigMuteButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAS,MAAM,cAAc,CAAA;AAOpE,OAAO,sDAAsD,CAAA;AAM7D;;;;;;;;;;GAUG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAQ;IAExB,OAAO,CAAC,MAAM,CAAQ;IAGtB,OAAO,CAAC,YAAY,CAAQ;IAE5B;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAEzD;;OAEG;IACH,IAAa,MAAM;;MAIlB;IAED;;OAEG;IACM,UAAU;IAWnB,OAAO,CAAC,WAAW;IAEnB,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,MAAM;IAmBd,OAAO,CAAC,MAAM;IAOd,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,UAAU;IAKlB;;OAEG;IACM,MAAM;IAUf,OAAO,CAAC,KAAK;IAKb,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,OAAO;CAiBhB"}
1
+ {"version":3,"file":"BigMuteButton.d.ts","sourceRoot":"","sources":["../../../src/plugins/big-mute-button/BigMuteButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAS,MAAM,cAAc,CAAA;AAOpE,OAAO,sDAAsD,CAAA;AAM7D;;;;;;;;;;GAUG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAQ;IAExB,OAAO,CAAC,MAAM,CAAQ;IAGtB,OAAO,CAAC,YAAY,CAAQ;IAE5B;;OAEG;IACH,IAAI,IAAI,WAEP;IAED;;OAEG;IACH,IAAI,gBAAgB;;MAEnB;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAEzD;;OAEG;IACH,IAAa,MAAM;;MAIlB;IAED;;OAEG;IACM,UAAU;IAWnB,OAAO,CAAC,WAAW;IAEnB,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,MAAM;IAmBd,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,UAAU;IAKlB;;OAEG;IACM,MAAM;IAUf,OAAO,CAAC,KAAK;IAKb,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,OAAO;CAiBhB"}
@@ -79,7 +79,8 @@ export class BigMuteButton extends UICorePlugin {
79
79
  this.destroy();
80
80
  }
81
81
  }
82
- onStop(_, { ui }) {
82
+ onStop(_, metadata) {
83
+ const ui = metadata?.ui;
83
84
  trace(`${T} onStop`, { ui });
84
85
  if (ui) {
85
86
  this.destroy();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcorevideo/player",
3
- "version": "2.28.8",
3
+ "version": "2.28.10",
4
4
  "description": "Gcore JavaScript video player",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -84,7 +84,11 @@ export class BigMuteButton extends UICorePlugin {
84
84
  )
85
85
  this.listenTo(this.core.activeContainer, Events.CONTAINER_PLAY, this.onPlay)
86
86
  this.listenTo(this.core.activeContainer, Events.CONTAINER_STOP, this.onStop)
87
- this.listenTo(this.core.activeContainer, Events.CONTAINER_PAUSE, this.onPause)
87
+ this.listenTo(
88
+ this.core.activeContainer,
89
+ Events.CONTAINER_PAUSE,
90
+ this.onPause,
91
+ )
88
92
  }
89
93
 
90
94
  private onPlay(_: string, { autoPlay }: { autoPlay?: boolean }) {
@@ -106,7 +110,8 @@ export class BigMuteButton extends UICorePlugin {
106
110
  }
107
111
  }
108
112
 
109
- private onStop(_: string, { ui }: { ui?: boolean }) {
113
+ private onStop(_: string, metadata?: { ui?: boolean }) {
114
+ const ui = metadata?.ui
110
115
  trace(`${T} onStop`, { ui })
111
116
  if (ui) {
112
117
  this.destroy()