@codenkay/video-nsgplayer-ui 5.0.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 +38 -0
- package/README.md +6 -0
- package/dist/index.cjs +855 -245
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +119 -21
- package/dist/index.d.ts +119 -21
- package/dist/index.js +847 -240
- package/dist/index.js.map +1 -1
- package/dist/player-ui.css +203 -1
- package/package.json +3 -3
- package/styles.css +203 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Align with core **5.4.0** and react **5.2.0**. Peer ranges: `@codenkay/video-nsgplayer-core@^5.4.0`, `@codenkay/video-nsgplayer-react@^5.2.0`.
|
|
8
|
+
- Idle toolbar hide: after 5s without pointer activity (or ~1.2s after the pointer leaves), the chrome fades out and a bottom-edge progress line remains for VOD and live. The toolbar stays mounted while hidden (CSS opacity/visibility).
|
|
9
|
+
- Responsive control chrome: wrapping rows, compact touch targets, hide volume slider / skip / time on narrow viewports and container queries, `max-width: 100%` on the root.
|
|
10
|
+
- Includes 5.2.0 lease error UI (`leaseError`, `describePlayerError`), `watermarkText`, and caption restore across renewals.
|
|
11
|
+
|
|
12
|
+
## 5.2.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Restore reliable idle toolbar hide: after 5s without pointer activity (or ~1.2s after the pointer leaves the player), the control chrome fades out and a bottom-edge progress line remains.
|
|
17
|
+
- Edge progress works for live as well as VOD (live uses the live-edge / buffered window when duration is not finite).
|
|
18
|
+
- Keep the toolbar mounted while hidden (CSS opacity/visibility) so idle show/hide does not remount controls.
|
|
19
|
+
- Responsive control chrome: wrapping rows, compact touch targets, hide volume slider / skip / time on narrow viewports and container queries, `max-width: 100%` on the root.
|
|
20
|
+
|
|
21
|
+
## 5.2.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- Error UI now handles student lease errors. `PLAYBACK_NOT_READY` shows a polite "Live video is preparing" status instead of an alert. `PLATFORM_IN_USE` shows which platform holds the session ("You are already watching video on Android."). Other errors keep the generic alert. Pass a lease error with the new `leaseError` prop, or let the player's own `error` flow through. See `describePlayerError`.
|
|
26
|
+
- Keep the selected caption language across source renewals. `NsgVideoPlayerWithControls` calls core `restoreSubtitleSelection` for the `selectedSidecar` language after `ready`, after a renewal finishes, and on `loadedmetadata`. Only SDK-owned `<track>` elements (`data-sample-subtitle`, `data-appextech-subtitle`) are touched. Exported as `useRestoreSubtitleSelection` for custom chrome.
|
|
27
|
+
- Add a `watermarkText` prop for lease-driven watermark text. It overrides `config.watermark.text`, which stays the fallback.
|
|
28
|
+
- Peer range is now `@codenkay/video-nsgplayer-core@^5.3.0`.
|
|
29
|
+
|
|
30
|
+
## 5.1.0
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- Replace the standalone quality control with a settings menu. Quality, zoom, and subtitles each open on their own panel with a back control.
|
|
35
|
+
- Add a listen-audio control immediately before playback speed. The host supplies availability, the active mode, and sidecar caption tracks.
|
|
36
|
+
- While audio-only playback is running, show a center headphones control labeled “Tap to enable video”.
|
|
37
|
+
- 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.
|
|
38
|
+
- Switching between video and audio keeps the playhead, the rate, and an audible volume. The host only has to supply the next signed URL.
|
|
39
|
+
- Peer range `^5.0.0` accepts core 5.2.0. This package does not need another version for that engine release.
|
|
40
|
+
|
|
3
41
|
## 5.0.0
|
|
4
42
|
|
|
5
43
|
### 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.3.0** restores idle toolbar hide (5s inactivity or ~1.2s after pointer leave) with a bottom-edge progress line for VOD and live, plus responsive chrome for narrow viewports. `onMediaModeChange` must switch the next signed URL before it returns; the player resumes at the same time, rate, and audible volume. Settings lists quality, zoom, and subtitles when those tracks exist. Peer core **^5.4.0** and react **^5.2.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
|