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 +6 -7
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/dash.all.min-CkVT4O2X.cjs +19 -0
- package/dist/dash.all.min-CkVT4O2X.cjs.map +1 -0
- package/dist/dash.all.min-srqAFNy2.js +38600 -0
- package/dist/dash.all.min-srqAFNy2.js.map +1 -0
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +501 -492
- package/dist/index.js.map +1 -1
- package/dist/{src-9ogb0T2_.js → src-BNOvGEgV.js} +33 -22
- package/dist/{src-9ogb0T2_.js.map → src-BNOvGEgV.js.map} +1 -1
- package/dist/{src-DZrghpiH.cjs → src-BRPWpIe_.cjs} +3 -3
- package/dist/{src-DZrghpiH.cjs.map → src-BRPWpIe_.cjs.map} +1 -1
- package/package.json +2 -6
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 (
|
|
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
|
|
29
|
-
|
|
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
|
|
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-
|
|
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-
|
|
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;
|