@codenkay/video-nsgplayer-ui 4.0.0 → 5.1.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 +23 -0
- package/README.md +8 -0
- package/dist/index.cjs +646 -208
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -21
- package/dist/index.d.ts +72 -21
- package/dist/index.js +643 -206
- package/dist/index.js.map +1 -1
- package/dist/player-ui.css +108 -0
- package/package.json +5 -5
- package/styles.css +108 -0
package/dist/player-ui.css
CHANGED
|
@@ -64,6 +64,22 @@
|
|
|
64
64
|
object-fit: contain;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.nsg-player-edge-progress {
|
|
68
|
+
position: absolute;
|
|
69
|
+
right: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
z-index: 8;
|
|
73
|
+
height: 3px;
|
|
74
|
+
background: rgba(255, 255, 255, 0.28);
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.nsg-player-edge-progress__played {
|
|
79
|
+
height: 100%;
|
|
80
|
+
background: var(--player-seek-progress);
|
|
81
|
+
}
|
|
82
|
+
|
|
67
83
|
.nsg-player-control-bar {
|
|
68
84
|
position: absolute;
|
|
69
85
|
inset-inline: 0;
|
|
@@ -251,6 +267,98 @@
|
|
|
251
267
|
background: rgba(255, 255, 255, 0.1);
|
|
252
268
|
}
|
|
253
269
|
|
|
270
|
+
.nsg-player-settings {
|
|
271
|
+
min-width: 15rem;
|
|
272
|
+
padding-top: 0.25rem;
|
|
273
|
+
background: rgba(15, 23, 42, 0.96);
|
|
274
|
+
color: #f8fafc;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.nsg-player-settings__row {
|
|
278
|
+
position: relative;
|
|
279
|
+
justify-content: space-between;
|
|
280
|
+
gap: 1rem;
|
|
281
|
+
min-height: 44px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.nsg-player-settings__row + .nsg-player-settings__row::before {
|
|
285
|
+
content: "";
|
|
286
|
+
position: absolute;
|
|
287
|
+
top: 0;
|
|
288
|
+
left: 0.75rem;
|
|
289
|
+
right: 0.75rem;
|
|
290
|
+
height: 1px;
|
|
291
|
+
background: rgba(255, 255, 255, 0.18);
|
|
292
|
+
pointer-events: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.nsg-player-settings__name {
|
|
296
|
+
display: inline-flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
gap: 0.65rem;
|
|
299
|
+
min-width: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.nsg-player-settings__value {
|
|
303
|
+
color: #cbd5e1;
|
|
304
|
+
font-variant-numeric: tabular-nums;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.nsg-player-settings__header {
|
|
308
|
+
display: flex;
|
|
309
|
+
align-items: center;
|
|
310
|
+
gap: 0.25rem;
|
|
311
|
+
min-height: 44px;
|
|
312
|
+
position: relative;
|
|
313
|
+
padding: 0 0.75rem 0.25rem 0.25rem;
|
|
314
|
+
font-size: 0.8rem;
|
|
315
|
+
font-weight: 600;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.nsg-player-settings__header::after {
|
|
319
|
+
content: "";
|
|
320
|
+
position: absolute;
|
|
321
|
+
right: 0.75rem;
|
|
322
|
+
bottom: 0;
|
|
323
|
+
left: 0.75rem;
|
|
324
|
+
height: 1px;
|
|
325
|
+
background: rgba(255, 255, 255, 0.18);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.nsg-player-settings__back {
|
|
329
|
+
display: inline-flex;
|
|
330
|
+
align-items: center;
|
|
331
|
+
justify-content: center;
|
|
332
|
+
width: 44px;
|
|
333
|
+
height: 44px;
|
|
334
|
+
border: 0;
|
|
335
|
+
border-radius: 0.25rem;
|
|
336
|
+
background: transparent;
|
|
337
|
+
color: inherit;
|
|
338
|
+
cursor: pointer;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.nsg-player-settings__back:hover,
|
|
342
|
+
.nsg-player-settings__back:focus-visible {
|
|
343
|
+
background: rgba(255, 255, 255, 0.1);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.nsg-player-settings__check {
|
|
347
|
+
display: inline-block;
|
|
348
|
+
width: 1rem;
|
|
349
|
+
margin-right: 0.35rem;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.nsg-player-settings__status {
|
|
353
|
+
margin: 0.25rem 0.75rem 0.5rem;
|
|
354
|
+
font-size: 0.7rem;
|
|
355
|
+
color: #cbd5e1;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.nsg-player-btn[aria-pressed="true"] {
|
|
359
|
+
background: rgba(255, 255, 255, 0.16);
|
|
360
|
+
}
|
|
361
|
+
|
|
254
362
|
.nsg-player-center-overlay {
|
|
255
363
|
position: absolute;
|
|
256
364
|
inset: 0;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codenkay/video-nsgplayer-ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "React control chrome for NSG video player (quality, speed, seek, live, etc.)
|
|
3
|
+
"version": "5.1.0",
|
|
4
|
+
"description": "React control chrome for NSG video player (quality, speed, seek, live, etc.)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NSG Player",
|
|
7
|
-
"homepage": "https://github.com/codenannu/nsgplayer-
|
|
7
|
+
"homepage": "https://github.com/codenannu/nsgplayer-sample-react#readme",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/codenannu/nsgplayer-video.git",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"**/*.css"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@codenkay/video-nsgplayer-core": "^
|
|
40
|
-
"@codenkay/video-nsgplayer-react": "^
|
|
39
|
+
"@codenkay/video-nsgplayer-core": "^5.0.0",
|
|
40
|
+
"@codenkay/video-nsgplayer-react": "^5.0.0",
|
|
41
41
|
"react": ">=18",
|
|
42
42
|
"react-dom": ">=18"
|
|
43
43
|
},
|
package/styles.css
CHANGED
|
@@ -64,6 +64,22 @@
|
|
|
64
64
|
object-fit: contain;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.nsg-player-edge-progress {
|
|
68
|
+
position: absolute;
|
|
69
|
+
right: 0;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
z-index: 8;
|
|
73
|
+
height: 3px;
|
|
74
|
+
background: rgba(255, 255, 255, 0.28);
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.nsg-player-edge-progress__played {
|
|
79
|
+
height: 100%;
|
|
80
|
+
background: var(--player-seek-progress);
|
|
81
|
+
}
|
|
82
|
+
|
|
67
83
|
.nsg-player-control-bar {
|
|
68
84
|
position: absolute;
|
|
69
85
|
inset-inline: 0;
|
|
@@ -251,6 +267,98 @@
|
|
|
251
267
|
background: rgba(255, 255, 255, 0.1);
|
|
252
268
|
}
|
|
253
269
|
|
|
270
|
+
.nsg-player-settings {
|
|
271
|
+
min-width: 15rem;
|
|
272
|
+
padding-top: 0.25rem;
|
|
273
|
+
background: rgba(15, 23, 42, 0.96);
|
|
274
|
+
color: #f8fafc;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.nsg-player-settings__row {
|
|
278
|
+
position: relative;
|
|
279
|
+
justify-content: space-between;
|
|
280
|
+
gap: 1rem;
|
|
281
|
+
min-height: 44px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.nsg-player-settings__row + .nsg-player-settings__row::before {
|
|
285
|
+
content: "";
|
|
286
|
+
position: absolute;
|
|
287
|
+
top: 0;
|
|
288
|
+
left: 0.75rem;
|
|
289
|
+
right: 0.75rem;
|
|
290
|
+
height: 1px;
|
|
291
|
+
background: rgba(255, 255, 255, 0.18);
|
|
292
|
+
pointer-events: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.nsg-player-settings__name {
|
|
296
|
+
display: inline-flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
gap: 0.65rem;
|
|
299
|
+
min-width: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.nsg-player-settings__value {
|
|
303
|
+
color: #cbd5e1;
|
|
304
|
+
font-variant-numeric: tabular-nums;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.nsg-player-settings__header {
|
|
308
|
+
display: flex;
|
|
309
|
+
align-items: center;
|
|
310
|
+
gap: 0.25rem;
|
|
311
|
+
min-height: 44px;
|
|
312
|
+
position: relative;
|
|
313
|
+
padding: 0 0.75rem 0.25rem 0.25rem;
|
|
314
|
+
font-size: 0.8rem;
|
|
315
|
+
font-weight: 600;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.nsg-player-settings__header::after {
|
|
319
|
+
content: "";
|
|
320
|
+
position: absolute;
|
|
321
|
+
right: 0.75rem;
|
|
322
|
+
bottom: 0;
|
|
323
|
+
left: 0.75rem;
|
|
324
|
+
height: 1px;
|
|
325
|
+
background: rgba(255, 255, 255, 0.18);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.nsg-player-settings__back {
|
|
329
|
+
display: inline-flex;
|
|
330
|
+
align-items: center;
|
|
331
|
+
justify-content: center;
|
|
332
|
+
width: 44px;
|
|
333
|
+
height: 44px;
|
|
334
|
+
border: 0;
|
|
335
|
+
border-radius: 0.25rem;
|
|
336
|
+
background: transparent;
|
|
337
|
+
color: inherit;
|
|
338
|
+
cursor: pointer;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.nsg-player-settings__back:hover,
|
|
342
|
+
.nsg-player-settings__back:focus-visible {
|
|
343
|
+
background: rgba(255, 255, 255, 0.1);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.nsg-player-settings__check {
|
|
347
|
+
display: inline-block;
|
|
348
|
+
width: 1rem;
|
|
349
|
+
margin-right: 0.35rem;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.nsg-player-settings__status {
|
|
353
|
+
margin: 0.25rem 0.75rem 0.5rem;
|
|
354
|
+
font-size: 0.7rem;
|
|
355
|
+
color: #cbd5e1;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.nsg-player-btn[aria-pressed="true"] {
|
|
359
|
+
background: rgba(255, 255, 255, 0.16);
|
|
360
|
+
}
|
|
361
|
+
|
|
254
362
|
.nsg-player-center-overlay {
|
|
255
363
|
position: absolute;
|
|
256
364
|
inset: 0;
|