boss-web-player-sdk 1.1.1 → 1.1.3

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/README.md CHANGED
@@ -6,7 +6,7 @@ A unified, high-performance OTT web video player SDK for adaptive streaming —
6
6
 
7
7
  ## Features
8
8
 
9
- - **Adaptive streaming** — HLS (bundled `hls.js`) and DASH (optional `dashjs`) with automatic quality switching
9
+ - **Adaptive streaming** — HLS (bundled `hls.js`) and DASH (bundled `dashjs`) with automatic quality switching
10
10
  - **DRM** — token-based authorization, FairPlay / Widevine, dynamic watermarking
11
11
  - **Rich controls** — quality, playback speed, subtitles, PiP, fullscreen, chapters/key-moments
12
12
  - **Casting** — Chromecast and AirPlay
@@ -25,14 +25,13 @@ npm install @goboss/web-video-player-sdk
25
25
  | Package | Required? | Notes |
26
26
  |---|---|---|
27
27
  | `react`, `react-dom` (`^18` or `^19`) | **Required** for the React component & `createPlayer` | Not needed if you only use the headless `/core` entry |
28
- | `firebase` (`>=10`) | **Optional** | Only loaded (lazily) if you pass `firebaseConfig`. The SDK installs and runs fine without it. |
29
- | `dashjs` (`^5`) | **Optional** | Only needed to play **DASH** (`.mpd`) streams. HLS works without it. |
28
+ | `firebase` (`>=10`) | **Optional** | Only needed for **Firebase Analytics**. Install it only if you pass `firebaseConfig`; the SDK installs and runs fine without it. |
29
+
30
+ > **DASH works out of the box.** `dashjs` is bundled into the SDK (lazily, like `hls.js`) — you do **not** need to install it separately. The DASH engine is only fetched by the browser when a `.mpd` stream actually plays, so HLS-only apps never download it.
30
31
 
31
32
  ```bash
32
33
  # Only if you use Firebase analytics:
33
34
  npm install firebase
34
- # Only if you play DASH (.mpd) streams:
35
- npm install dashjs
36
35
  ```
37
36
 
38
37
  ### CSS — required, import once
@@ -332,8 +331,8 @@ import type {
332
331
  ## Module formats
333
332
 
334
333
  Ships **ES Module** (`dist/index.js`) and **CommonJS** (`dist/index.cjs`) builds with bundled TypeScript
335
- definitions and an extracted stylesheet (`@goboss/web-video-player-sdk/css`). `react`, `react-dom`,
336
- `firebase`, and `dashjs` are externalized (see peer dependencies).
334
+ definitions and an extracted stylesheet (`@goboss/web-video-player-sdk/css`). `react`, `react-dom`, and
335
+ `firebase` are externalized (see peer dependencies); `hls.js` and `dashjs` are bundled (lazily).
337
336
 
338
337
  ## License
339
338
 
package/dist/core.cjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./src-DZrghpiH.cjs");var t=class{player;install(e){this.player=e,this.onInstall()}destroy(){this.onDestroy()}onDestroy(){}};exports.AnalyticsModule=e.l,exports.BasePlayerPlugin=t,exports.CastingModule=e.r,exports.ChaptersModule=e.o,exports.DRMModule=e.i,exports.FirebaseAnalyticsProvider=e.c,exports.KeyMomentsModule=e.s,exports.SubtitlesModule=e.a,exports.ThumbnailsModule=e.n,exports.VideoPlayerSDK=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./src-BRPWpIe_.cjs");var t=class{player;install(e){this.player=e,this.onInstall()}destroy(){this.onDestroy()}onDestroy(){}};exports.AnalyticsModule=e.l,exports.BasePlayerPlugin=t,exports.CastingModule=e.r,exports.ChaptersModule=e.o,exports.DRMModule=e.i,exports.FirebaseAnalyticsProvider=e.c,exports.KeyMomentsModule=e.s,exports.SubtitlesModule=e.a,exports.ThumbnailsModule=e.n,exports.VideoPlayerSDK=e.t;
2
2
  //# sourceMappingURL=core.cjs.map
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./src-9ogb0T2_.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./src-BNOvGEgV.js";
2
2
  //#region ../plugins/src/plugins.ts
3
3
  var l = class {
4
4
  player;