@codenkay/video-nsgplayer-ui 5.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 +11 -0
- package/README.md +6 -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 +1 -1
- package/styles.css +108 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Replace the standalone quality control with a settings menu. Quality, zoom, and subtitles each open on their own panel with a back control.
|
|
8
|
+
- Add a listen-audio control immediately before playback speed. The host supplies availability, the active mode, and sidecar caption tracks.
|
|
9
|
+
- While audio-only playback is running, show a center headphones control labeled “Tap to enable video”.
|
|
10
|
+
- Settings rows show an icon and an inset divider. The toolbar hides after 5 seconds without pointer activity and leaves a progress line on the bottom edge.
|
|
11
|
+
- Switching between video and audio keeps the playhead, the rate, and an audible volume. The host only has to supply the next signed URL.
|
|
12
|
+
- Peer range `^5.0.0` accepts core 5.2.0. This package does not need another version for that engine release.
|
|
13
|
+
|
|
3
14
|
## 5.0.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -19,6 +19,10 @@ import "@codenkay/video-nsgplayer-ui/styles.css";
|
|
|
19
19
|
auth={{ getToken }}
|
|
20
20
|
playback={{ getSource, refreshSource }}
|
|
21
21
|
config={{
|
|
22
|
+
streaming: {
|
|
23
|
+
mediaProxyUrlBuilder: ({ url }) =>
|
|
24
|
+
`${location.origin}/api/media?url=${encodeURIComponent(url)}`,
|
|
25
|
+
},
|
|
22
26
|
controls: { enabled: true, showQuality: true },
|
|
23
27
|
theme: { seekProgressColor: "#38bdf8" },
|
|
24
28
|
}}
|
|
@@ -35,6 +39,8 @@ import "@codenkay/video-nsgplayer-ui/styles.css";
|
|
|
35
39
|
|
|
36
40
|
Zoom is UI-only (CSS `scale`). Import `styles.css` once in the host app.
|
|
37
41
|
|
|
42
|
+
UI **5.1.0** is not on npm yet. `onMediaModeChange` must switch the next signed URL before it returns. The player then resumes at the same time, rate, and audible volume. The toolbar hides after 5 seconds without pointer activity and leaves a progress line on the bottom edge. Settings lists quality, zoom, and subtitles when those tracks exist. Each row has an icon and an inset divider. Install core **5.2.0** for the buffer and token refresh. The React adapter can stay at 5.0.0.
|
|
43
|
+
|
|
38
44
|
Published bundles include a `"use client";` banner for Next.js App Router. Pass `analytics`, use `ref` for `getDiagnostics()` / runtime API, and set `watermark.durationMs` / `intervalMaxMs` for intermittent anti-leak watermarks.
|
|
39
45
|
|
|
40
46
|
## Samples
|