@npo/player 1.14.0 → 1.15.1
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/README.md +1 -1
- package/lib/js/ads/ster.d.ts +3 -3
- package/lib/js/ads/ster.js +114 -98
- package/lib/js/ads/ster.js.map +1 -1
- package/lib/js/ads/ster.test.js +0 -27
- package/lib/js/ads/ster.test.js.map +1 -1
- package/lib/js/playeractions/handlers/processsourceconfig.js +2 -0
- package/lib/js/playeractions/handlers/processsourceconfig.js.map +1 -1
- package/lib/js/tracking/handlers/eventbinding.js +37 -30
- package/lib/js/tracking/handlers/eventbinding.js.map +1 -1
- package/lib/js/ui/components/audio/controlbar.d.ts +3 -0
- package/lib/js/ui/components/audio/controlbar.js +23 -0
- package/lib/js/ui/components/audio/controlbar.js.map +1 -0
- package/lib/js/ui/components/controlbar.js +4 -18
- package/lib/js/ui/components/controlbar.js.map +1 -1
- package/lib/js/ui/components/nativemobile/buttons.d.ts +2 -2
- package/lib/js/ui/components/nativemobile/buttons.js +36 -24
- package/lib/js/ui/components/nativemobile/buttons.js.map +1 -1
- package/lib/js/ui/components/nativemobile/controlbar.js +3 -4
- package/lib/js/ui/components/nativemobile/controlbar.js.map +1 -1
- package/lib/js/ui/components/nativemobile/topbar.js +2 -2
- package/lib/js/ui/components/nativemobile/topbar.js.map +1 -1
- package/lib/js/ui/components/seekbar.d.ts +6 -0
- package/lib/js/ui/components/seekbar.js +21 -0
- package/lib/js/ui/components/seekbar.js.map +1 -0
- package/lib/js/ui/components/settingspanel.js +23 -1
- package/lib/js/ui/components/settingspanel.js.map +1 -1
- package/lib/js/ui/nativemobileuicontainer.js +1 -0
- package/lib/js/ui/nativemobileuicontainer.js.map +1 -1
- package/lib/js/ui/nativemobileuifactory.js +1 -1
- package/lib/js/ui/nativemobileuifactory.js.map +1 -1
- package/lib/js/ui/uicontainer.d.ts +2 -1
- package/lib/js/ui/uicontainer.js +26 -8
- package/lib/js/ui/uicontainer.js.map +1 -1
- package/lib/js/utilities/utilities.d.ts +2 -2
- package/lib/js/utilities/utilities.js +13 -18
- package/lib/js/utilities/utilities.js.map +1 -1
- package/lib/js/utilities/utilities.test.d.ts +1 -0
- package/lib/js/utilities/utilities.test.js +19 -0
- package/lib/js/utilities/utilities.test.js.map +1 -0
- package/lib/npoplayer.d.ts +6 -5
- package/lib/npoplayer.js +13 -26
- package/lib/npoplayer.js.map +1 -1
- package/lib/package.json +2 -2
- package/lib/src/js/ads/ster.d.ts +3 -3
- package/lib/src/js/ui/components/audio/controlbar.d.ts +3 -0
- package/lib/src/js/ui/components/nativemobile/buttons.d.ts +2 -2
- package/lib/src/js/ui/components/seekbar.d.ts +6 -0
- package/lib/src/js/ui/uicontainer.d.ts +2 -1
- package/lib/src/js/utilities/utilities.d.ts +2 -2
- package/lib/src/js/utilities/utilities.test.d.ts +1 -0
- package/lib/src/npoplayer.d.ts +6 -5
- package/lib/src/types/interfaces.d.ts +6 -0
- package/lib/types/interfaces.d.ts +6 -0
- package/lib/types/interfaces.js +6 -0
- package/lib/types/interfaces.js.map +1 -1
- package/package.json +2 -2
- package/src/scss/components/_audio.scss +4 -0
- package/src/scss/components/_buffering.scss +37 -29
- package/src/scss/components/_hugeplaybacktogglebutton.scss +1 -1
- package/src/scss/components/_icons.scss +1 -1
- package/src/scss/components/_replay.scss +0 -5
- package/src/scss/components/_seekbar.scss +9 -5
- package/src/scss/components/_settingspanel.scss +6 -2
- package/src/scss/components/_subtitles.scss +45 -27
- package/src/scss/components/_volumeslider.scss +1 -0
- package/src/scss/components/audio/_bottombar.scss +43 -0
- package/src/scss/components/audio/_buffering.scss +8 -0
- package/src/scss/components/audio/_errors.scss +13 -0
- package/src/scss/components/audio/_metadata.scss +38 -0
- package/src/scss/components/audio/_playbutton.scss +66 -0
- package/src/scss/components/audio/_poster.scss +19 -0
- package/src/scss/components/audio/_replay.scss +28 -0
- package/src/scss/components/audio/_seekbar.scss +26 -0
- package/src/scss/components/audio/_topbar.scss +35 -0
- package/src/scss/components/audio/_vars.scss +5 -0
- package/src/scss/components/audio/_volumeslider.scss +35 -0
- package/src/scss/npoplayer.css +84 -28
- package/src/scss/npoplayer.scss +10 -6
- package/src/scss/variants/_player-audio.scss +55 -0
- package/src/scss/variants/_player-base.scss +4 -0
- package/src/scss/variants/_player-small.scss +4 -0
- package/src/scss/vars/_audio.scss +5 -0
- package/src/scss/vars/_colors.scss +4 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.bmpui-ui-controlbar {
|
|
2
|
+
background: none;
|
|
3
|
+
|
|
4
|
+
&.bmpui-ui-controlbar-bottom {
|
|
5
|
+
height: auto;
|
|
6
|
+
padding-left: $player-spacing-left;
|
|
7
|
+
padding-bottom: $player-spacing;
|
|
8
|
+
|
|
9
|
+
>.bmpui-container-wrapper {
|
|
10
|
+
display: flex;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.bmpui-ui-container.bmpui-controlbar-top {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.bmpui-ui-controlbar {
|
|
19
|
+
background: none;
|
|
20
|
+
padding: 0;
|
|
21
|
+
position: relative;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.bmpui-controlbar-bottom {
|
|
25
|
+
padding: 0 !important;
|
|
26
|
+
|
|
27
|
+
.bmpui-container-wrapper {
|
|
28
|
+
margin: 0 !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.bmpui-layout-max-width-400 {
|
|
35
|
+
.bmpui-ui-controlbar.bmpui-ui-controlbar-bottom {
|
|
36
|
+
display: block;
|
|
37
|
+
padding: 0 20px 10px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.bmpui-ui-container.bmpui-controlbar-bottom {
|
|
41
|
+
display: block;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.bmpui-ui-errormessage-overlay {
|
|
2
|
+
background-color: var(--npo-audio-player-background-color);
|
|
3
|
+
z-index: 100;
|
|
4
|
+
|
|
5
|
+
&::before {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.bmpui-ui-errormessage-label {
|
|
10
|
+
text-shadow: none;
|
|
11
|
+
color: var(--npo-audio-player-text-color);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.bmpui-metadata {
|
|
2
|
+
padding: 0;
|
|
3
|
+
display: block !important;
|
|
4
|
+
|
|
5
|
+
.bmpui-label-metadata-title {
|
|
6
|
+
padding: $player-spacing 40px 0 $player-spacing-left;
|
|
7
|
+
text-shadow: none;
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
line-height: 20.83px;
|
|
10
|
+
margin-left: 79px;
|
|
11
|
+
margin-top: $player-spacing-inner;
|
|
12
|
+
|
|
13
|
+
// Max 3 lines
|
|
14
|
+
display: -webkit-box;
|
|
15
|
+
-webkit-line-clamp: 3;
|
|
16
|
+
-webkit-box-orient: vertical;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.bmpui-label-metadata-description,
|
|
22
|
+
.bmpui-nicam {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.bmpui-layout-max-width-400 {
|
|
28
|
+
.bmpui-label-metadata-title {
|
|
29
|
+
padding-left: 55px;
|
|
30
|
+
padding-top: 0;
|
|
31
|
+
margin-top: 13px;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
line-height: 17.01px;
|
|
34
|
+
height: 50px;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.bmpui-ui-playbacktoggle-overlay {
|
|
2
|
+
display: none;
|
|
3
|
+
animation: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&.bmpui-player-state-playing,
|
|
7
|
+
&.bmpui-player-state-paused,
|
|
8
|
+
&.bmpui-player-state-idle,
|
|
9
|
+
&.bmpui-player-state-prepared,
|
|
10
|
+
&.bmpui-player-state-finished {
|
|
11
|
+
.bmpui-ui-playbacktoggle-overlay {
|
|
12
|
+
display: block;
|
|
13
|
+
animation: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.bmpui-ui-playbacktoggle-overlay {
|
|
18
|
+
opacity: 1;
|
|
19
|
+
width: 64px;
|
|
20
|
+
height: 64px;
|
|
21
|
+
top: $player-spacing;
|
|
22
|
+
margin-top: $player-spacing-inner;
|
|
23
|
+
left: $player-spacing-left;
|
|
24
|
+
|
|
25
|
+
.bmpui-ui-hugeplaybacktogglebutton {
|
|
26
|
+
padding: 0;
|
|
27
|
+
|
|
28
|
+
.bmpui-image {
|
|
29
|
+
&::before {
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
background-color: var(--npo-player-primarycolor);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::after {
|
|
38
|
+
background-color: var(--npo-audio-player-background-color);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.bmpui-on .bmpui-image {
|
|
43
|
+
animation: none;
|
|
44
|
+
transition: none;
|
|
45
|
+
visibility: visible;
|
|
46
|
+
|
|
47
|
+
&:after {
|
|
48
|
+
mask-image: var(--npo-player-icon-pause);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.bmpui-layout-max-width-400 {
|
|
55
|
+
.bmpui-ui-playbacktoggle-overlay {
|
|
56
|
+
width: 36px;
|
|
57
|
+
height: 36px;
|
|
58
|
+
left: 90px;
|
|
59
|
+
margin-top: 7px;
|
|
60
|
+
|
|
61
|
+
.bmpui-image::after {
|
|
62
|
+
width: 60px;
|
|
63
|
+
height: 60px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.bitmovinplayer-poster {
|
|
2
|
+
top: $player-spacing;
|
|
3
|
+
left: $player-spacing;
|
|
4
|
+
height: 120px;
|
|
5
|
+
width: 120px;
|
|
6
|
+
width: auto;
|
|
7
|
+
right: auto;
|
|
8
|
+
bottom: auto;
|
|
9
|
+
aspect-ratio: 1 / 1;
|
|
10
|
+
border-radius: var(--npo-audio-player-poster-border-radius);
|
|
11
|
+
background-color: var(--npo-audio-player-poster-background);
|
|
12
|
+
display: block !important;
|
|
13
|
+
z-index: 1;
|
|
14
|
+
|
|
15
|
+
@container (max-width: 400px) {
|
|
16
|
+
width: 50px;
|
|
17
|
+
height: 50px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
&.bmpui-player-state-finished {
|
|
2
|
+
.bmpui-ui-playbacktoggle-overlay {
|
|
3
|
+
|
|
4
|
+
.bmpui-ui-hugeplaybacktogglebutton {
|
|
5
|
+
background: var(--npo-player-primarycolor);
|
|
6
|
+
border-radius: 50%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.bmpui-image,
|
|
10
|
+
.bmpui-image:hover {
|
|
11
|
+
&::after {
|
|
12
|
+
background-color: var(--npo-audio-player-background-color);
|
|
13
|
+
mask-size: 32px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.bmpui-layout-max-width-400 {
|
|
20
|
+
.bmpui-ui-playbacktoggle-overlay {
|
|
21
|
+
.bmpui-image,
|
|
22
|
+
.bmpui-image:hover {
|
|
23
|
+
&::after {
|
|
24
|
+
mask-size: 24px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.bmpui-ui-playbacktimelabel {
|
|
2
|
+
font-weight: normal;
|
|
3
|
+
font-family: var(--fontRegular);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.bmpui-ui-seekbar-label {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.bmpui-ui-seekbar {
|
|
11
|
+
.bmpui-seekbar {
|
|
12
|
+
.bmpui-seekbar-playbackposition-marker {
|
|
13
|
+
background-color: var(--npo-player-primarycolor);
|
|
14
|
+
border-color: var(--npo-player-primarycolor);
|
|
15
|
+
|
|
16
|
+
&::after {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.bmpui-seekbar-backdrop {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
background-color: var(--npo-player-seekbar-background);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// hide when not ready yet
|
|
2
|
+
.bmpui-controlbar-top {
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&.bmpui-player-state-playing,
|
|
7
|
+
&.bmpui-player-state-paused,
|
|
8
|
+
&.bmpui-player-state-idle,
|
|
9
|
+
&.bmpui-player-state-prepared,
|
|
10
|
+
&.bmpui-player-state-finished {
|
|
11
|
+
.bmpui-controlbar-top {
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.bmpui-ui-controlbar-top,
|
|
17
|
+
.bmpui-ui-titlebar {
|
|
18
|
+
background: none;
|
|
19
|
+
height: auto;
|
|
20
|
+
padding-left: $player-spacing-left;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.bmpui-container-wrapper {
|
|
24
|
+
color: var(--npo-audio-player-text-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.bmpui-player-state-prepared {
|
|
28
|
+
&.bmpui-controls-shown {
|
|
29
|
+
|
|
30
|
+
.bmpui-ui-titlebar,
|
|
31
|
+
.bmpui-ui-controlbar {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.bmpui-ui-volumeslider.bmpui-vertical {
|
|
2
|
+
top: auto;
|
|
3
|
+
right: $player-spacing-inner;
|
|
4
|
+
left: auto;
|
|
5
|
+
bottom: 50px;
|
|
6
|
+
position: fixed;
|
|
7
|
+
transition: none;
|
|
8
|
+
width: 20px;
|
|
9
|
+
|
|
10
|
+
.bmpui-seekbar-playbackposition-marker {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.bmpui-ui-volumetogglebutton {
|
|
16
|
+
width: 24px;
|
|
17
|
+
height: 24px;
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.bmpui-player-state-playing,
|
|
22
|
+
&.bmpui-player-state-paused,
|
|
23
|
+
&.bmpui-player-state-idle,
|
|
24
|
+
&.bmpui-player-state-prepared,
|
|
25
|
+
&.bmpui-player-state-finished {
|
|
26
|
+
.bmpui-ui-volumetogglebutton {
|
|
27
|
+
display: block;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.bmpui-layout-max-width-400 {
|
|
32
|
+
.bmpui-ui-volumetogglebutton {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|