@codenkay/video-nsgplayer-core 5.2.0 → 5.4.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 +19 -0
- package/README.md +2 -0
- package/dist/index.cjs +583 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +306 -4
- package/dist/index.d.ts +306 -4
- package/dist/index.js +568 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Align the monorepo release line with adapters **5.2.0 / 5.3.0 / 5.2.0** (react / ui / angular). Includes the enterprise parity surface from 5.3.0: `StudentLeaseClient`, `AnalyticsClient`, `appexHlsConfig` / `useAppexHlsProfile`, `restoreSubtitleSelection`, native HLS `nativeSessionMode` / `onNativeAuthUpdate`, and Origin-forwarding BFF guidance.
|
|
8
|
+
- Package version constant `PACKAGE_VERSION` is **5.4.0**.
|
|
9
|
+
|
|
10
|
+
## 5.3.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- Add `StudentLeaseClient` for online-institution student playback: `/student/playback`, a 15-second `/student/heartbeat`, and `/student/release` on stop, `ended`, and `pagehide`. `PLAYBACK_NOT_READY` is retried up to 20 times, 3 seconds apart, inside a 60-second deadline. `PLATFORM_IN_USE` (HTTP 409) is mapped to `StudentLeaseError` with `activePlatform`. `scheduleWatermark` shows `lease.watermark_text` intermittently.
|
|
15
|
+
- Add `AnalyticsClient`. It starts with a POST to `analytics/start` and sends event heartbeats with `watched_seconds`, `seq`, `playing`, and `ended`. The final heartbeat uses `keepalive`. Pass `send(url, body, opts)` so a BFF can wrap the call as `/api/media?url=`.
|
|
16
|
+
- Add `hlsConfig(isLive)` and its alias `appexHlsConfig(isLive)`, the Appextech hls.js profile (live buffer 24/40 seconds, VOD 60/120, 32MB cap, ABR tuning, live sync). Package defaults are unchanged. Set `streaming.useAppexHlsProfile: true` to apply the profile in the engine; it overrides the buffer, `startLevel`, and `lowLatencyMode` values for that player.
|
|
17
|
+
- Add `restoreSubtitleSelection(video, language)`. It restores only SDK-owned caption tracks (`data-sample-subtitle`, `data-appextech-subtitle`) after a media source is renewed.
|
|
18
|
+
- Export the `PLATFORM_IN_USE` and `PLAYBACK_NOT_READY` error codes, also available on `PlayerErrorCode`.
|
|
19
|
+
- Native HLS: add `streaming.nativeSessionMode` and `streaming.onNativeAuthUpdate`, and `HlsEngine.updateNativeAuthParams(params)`. With `nativeSessionMode`, a token renewal calls the callback and no longer replaces `video.src`, so playback does not reload. Without it, native renewal still reloads the source.
|
|
20
|
+
- Correct the proxy documentation. The browser must not call the playback host directly. The BFF must forward the validated viewer Origin on grant, refresh, and key requests.
|
|
21
|
+
|
|
3
22
|
## 5.2.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -46,6 +46,8 @@ await player.play();
|
|
|
46
46
|
|
|
47
47
|
Core **5.2.0** keeps a 30-second forward buffer and refreshes the playback token every 45 seconds. That refresh does not restart the loader. `streaming.mediaProxyUrlBuilder` arrived in 5.1.0, which is already on npm. See repository `docs/` for configuration, authentication, and security.
|
|
48
48
|
|
|
49
|
+
Core **5.4.0** (enterprise helpers since 5.3.0): `StudentLeaseClient` (student lease with heartbeat, release, and `PLAYBACK_NOT_READY` retry), `AnalyticsClient` (pass `send` to route through your BFF), `appexHlsConfig(isLive)` (set `streaming.useAppexHlsProfile: true` to apply it), `restoreSubtitleSelection`, and `streaming.nativeSessionMode` for native HLS renewals that do not reload `video.src`. Package defaults are unchanged.
|
|
50
|
+
|
|
49
51
|
## Samples
|
|
50
52
|
|
|
51
53
|
Framework adapters wrap this engine. Clone a ready playground:
|