@codenkay/video-nsgplayer-ui 5.1.0 → 5.3.0
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/CHANGELOG.md +27 -0
- package/README.md +1 -1
- package/dist/index.cjs +257 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +244 -74
- package/dist/index.js.map +1 -1
- package/dist/player-ui.css +97 -3
- package/package.json +3 -3
- package/styles.css +97 -3
package/dist/player-ui.css
CHANGED
|
@@ -33,19 +33,52 @@
|
|
|
33
33
|
width: 100%;
|
|
34
34
|
height: 100%;
|
|
35
35
|
min-height: 0;
|
|
36
|
+
max-width: 100%;
|
|
36
37
|
overflow: hidden;
|
|
37
38
|
background: #000;
|
|
38
39
|
outline: none;
|
|
39
40
|
color: var(--player-control-icon);
|
|
41
|
+
container-type: inline-size;
|
|
42
|
+
container-name: nsg-player;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
.nsg-player-video-wrap {
|
|
43
46
|
width: 100%;
|
|
44
47
|
height: 100%;
|
|
48
|
+
min-height: 0;
|
|
45
49
|
transform-origin: center center;
|
|
46
50
|
transition: transform 0.2s ease;
|
|
47
51
|
}
|
|
48
52
|
|
|
53
|
+
.nsg-player-toolbar-slot {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
z-index: 10;
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nsg-player-toolbar-slot > .nsg-player-control-bar {
|
|
62
|
+
pointer-events: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.nsg-player-toolbar-slot--visible {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
visibility: visible;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nsg-player-toolbar-slot--hidden {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
visibility: hidden;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
.nsg-player-toolbar-slot {
|
|
78
|
+
transition: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
49
82
|
@media (prefers-reduced-motion: reduce) {
|
|
50
83
|
.nsg-player-video-wrap {
|
|
51
84
|
transition: none;
|
|
@@ -69,15 +102,23 @@
|
|
|
69
102
|
right: 0;
|
|
70
103
|
bottom: 0;
|
|
71
104
|
left: 0;
|
|
72
|
-
z-index:
|
|
105
|
+
z-index: 9;
|
|
73
106
|
height: 3px;
|
|
74
107
|
background: rgba(255, 255, 255, 0.28);
|
|
75
|
-
pointer-events:
|
|
108
|
+
pointer-events: auto;
|
|
109
|
+
cursor: pointer;
|
|
76
110
|
}
|
|
77
111
|
|
|
78
112
|
.nsg-player-edge-progress__played {
|
|
79
113
|
height: 100%;
|
|
80
114
|
background: var(--player-seek-progress);
|
|
115
|
+
transition: width 0.15s linear;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion: reduce) {
|
|
119
|
+
.nsg-player-edge-progress__played {
|
|
120
|
+
transition: none;
|
|
121
|
+
}
|
|
81
122
|
}
|
|
82
123
|
|
|
83
124
|
.nsg-player-control-bar {
|
|
@@ -96,16 +137,21 @@
|
|
|
96
137
|
|
|
97
138
|
.nsg-player-control-row {
|
|
98
139
|
display: flex;
|
|
140
|
+
flex-wrap: wrap;
|
|
99
141
|
align-items: center;
|
|
100
|
-
gap: 0.5rem;
|
|
142
|
+
gap: 0.35rem 0.5rem;
|
|
101
143
|
color: var(--player-control-icon);
|
|
144
|
+
min-width: 0;
|
|
102
145
|
}
|
|
103
146
|
|
|
104
147
|
.nsg-player-control-row-end {
|
|
105
148
|
margin-left: auto;
|
|
106
149
|
display: flex;
|
|
150
|
+
flex-wrap: wrap;
|
|
107
151
|
align-items: center;
|
|
152
|
+
justify-content: flex-end;
|
|
108
153
|
gap: 0.25rem;
|
|
154
|
+
min-width: 0;
|
|
109
155
|
}
|
|
110
156
|
|
|
111
157
|
.nsg-player-btn {
|
|
@@ -210,6 +256,54 @@
|
|
|
210
256
|
.nsg-player-volume__slider {
|
|
211
257
|
display: none;
|
|
212
258
|
}
|
|
259
|
+
|
|
260
|
+
.nsg-player-control-bar {
|
|
261
|
+
padding: 1.75rem 0.5rem 0.5rem;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.nsg-player-btn {
|
|
265
|
+
min-width: 40px;
|
|
266
|
+
min-height: 40px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.nsg-player-time {
|
|
270
|
+
font-size: 0.7rem;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.nsg-player-settings {
|
|
274
|
+
min-width: min(15rem, calc(100vw - 2rem));
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@media (max-width: 420px) {
|
|
279
|
+
.nsg-player-control-row {
|
|
280
|
+
gap: 0.2rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.nsg-player-time {
|
|
284
|
+
display: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.nsg-player-btn[aria-label^="Back"],
|
|
288
|
+
.nsg-player-btn[aria-label^="Forward"] {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@container nsg-player (max-width: 520px) {
|
|
294
|
+
.nsg-player-volume__slider {
|
|
295
|
+
display: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.nsg-player-time {
|
|
299
|
+
font-size: 0.7rem;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@container nsg-player (max-width: 360px) {
|
|
304
|
+
.nsg-player-time {
|
|
305
|
+
display: none;
|
|
306
|
+
}
|
|
213
307
|
}
|
|
214
308
|
|
|
215
309
|
.nsg-player-menu {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codenkay/video-nsgplayer-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "React control chrome for NSG video player (quality, speed, seek, live, etc.)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NSG Player",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"**/*.css"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@codenkay/video-nsgplayer-core": "^5.
|
|
40
|
-
"@codenkay/video-nsgplayer-react": "^5.
|
|
39
|
+
"@codenkay/video-nsgplayer-core": "^5.4.0",
|
|
40
|
+
"@codenkay/video-nsgplayer-react": "^5.2.0",
|
|
41
41
|
"react": ">=18",
|
|
42
42
|
"react-dom": ">=18"
|
|
43
43
|
},
|
package/styles.css
CHANGED
|
@@ -33,19 +33,52 @@
|
|
|
33
33
|
width: 100%;
|
|
34
34
|
height: 100%;
|
|
35
35
|
min-height: 0;
|
|
36
|
+
max-width: 100%;
|
|
36
37
|
overflow: hidden;
|
|
37
38
|
background: #000;
|
|
38
39
|
outline: none;
|
|
39
40
|
color: var(--player-control-icon);
|
|
41
|
+
container-type: inline-size;
|
|
42
|
+
container-name: nsg-player;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
.nsg-player-video-wrap {
|
|
43
46
|
width: 100%;
|
|
44
47
|
height: 100%;
|
|
48
|
+
min-height: 0;
|
|
45
49
|
transform-origin: center center;
|
|
46
50
|
transition: transform 0.2s ease;
|
|
47
51
|
}
|
|
48
52
|
|
|
53
|
+
.nsg-player-toolbar-slot {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
z-index: 10;
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nsg-player-toolbar-slot > .nsg-player-control-bar {
|
|
62
|
+
pointer-events: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.nsg-player-toolbar-slot--visible {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
visibility: visible;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nsg-player-toolbar-slot--hidden {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
visibility: hidden;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (prefers-reduced-motion: reduce) {
|
|
77
|
+
.nsg-player-toolbar-slot {
|
|
78
|
+
transition: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
49
82
|
@media (prefers-reduced-motion: reduce) {
|
|
50
83
|
.nsg-player-video-wrap {
|
|
51
84
|
transition: none;
|
|
@@ -69,15 +102,23 @@
|
|
|
69
102
|
right: 0;
|
|
70
103
|
bottom: 0;
|
|
71
104
|
left: 0;
|
|
72
|
-
z-index:
|
|
105
|
+
z-index: 9;
|
|
73
106
|
height: 3px;
|
|
74
107
|
background: rgba(255, 255, 255, 0.28);
|
|
75
|
-
pointer-events:
|
|
108
|
+
pointer-events: auto;
|
|
109
|
+
cursor: pointer;
|
|
76
110
|
}
|
|
77
111
|
|
|
78
112
|
.nsg-player-edge-progress__played {
|
|
79
113
|
height: 100%;
|
|
80
114
|
background: var(--player-seek-progress);
|
|
115
|
+
transition: width 0.15s linear;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (prefers-reduced-motion: reduce) {
|
|
119
|
+
.nsg-player-edge-progress__played {
|
|
120
|
+
transition: none;
|
|
121
|
+
}
|
|
81
122
|
}
|
|
82
123
|
|
|
83
124
|
.nsg-player-control-bar {
|
|
@@ -96,16 +137,21 @@
|
|
|
96
137
|
|
|
97
138
|
.nsg-player-control-row {
|
|
98
139
|
display: flex;
|
|
140
|
+
flex-wrap: wrap;
|
|
99
141
|
align-items: center;
|
|
100
|
-
gap: 0.5rem;
|
|
142
|
+
gap: 0.35rem 0.5rem;
|
|
101
143
|
color: var(--player-control-icon);
|
|
144
|
+
min-width: 0;
|
|
102
145
|
}
|
|
103
146
|
|
|
104
147
|
.nsg-player-control-row-end {
|
|
105
148
|
margin-left: auto;
|
|
106
149
|
display: flex;
|
|
150
|
+
flex-wrap: wrap;
|
|
107
151
|
align-items: center;
|
|
152
|
+
justify-content: flex-end;
|
|
108
153
|
gap: 0.25rem;
|
|
154
|
+
min-width: 0;
|
|
109
155
|
}
|
|
110
156
|
|
|
111
157
|
.nsg-player-btn {
|
|
@@ -210,6 +256,54 @@
|
|
|
210
256
|
.nsg-player-volume__slider {
|
|
211
257
|
display: none;
|
|
212
258
|
}
|
|
259
|
+
|
|
260
|
+
.nsg-player-control-bar {
|
|
261
|
+
padding: 1.75rem 0.5rem 0.5rem;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.nsg-player-btn {
|
|
265
|
+
min-width: 40px;
|
|
266
|
+
min-height: 40px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.nsg-player-time {
|
|
270
|
+
font-size: 0.7rem;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.nsg-player-settings {
|
|
274
|
+
min-width: min(15rem, calc(100vw - 2rem));
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@media (max-width: 420px) {
|
|
279
|
+
.nsg-player-control-row {
|
|
280
|
+
gap: 0.2rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.nsg-player-time {
|
|
284
|
+
display: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.nsg-player-btn[aria-label^="Back"],
|
|
288
|
+
.nsg-player-btn[aria-label^="Forward"] {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@container nsg-player (max-width: 520px) {
|
|
294
|
+
.nsg-player-volume__slider {
|
|
295
|
+
display: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.nsg-player-time {
|
|
299
|
+
font-size: 0.7rem;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@container nsg-player (max-width: 360px) {
|
|
304
|
+
.nsg-player-time {
|
|
305
|
+
display: none;
|
|
306
|
+
}
|
|
213
307
|
}
|
|
214
308
|
|
|
215
309
|
.nsg-player-menu {
|