@oddin-gg/havik-player 1.3.0 → 1.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/README.md CHANGED
@@ -13,7 +13,7 @@ integration modes:
13
13
  Widevine (Chrome/Firefox/Edge/Android) is fully supported. Safari/iOS plays via
14
14
  native passthrough; full FairPlay EME is a tracked fast-follow. See [Limitations](#limitations).
15
15
 
16
- > 📖 **Full API reference:** [docs/API.md](docs/API.md) · **Examples** (vanilla / React / Vue): [examples/](examples/) · **API stability & versioning:** [docs/STABILITY.md](docs/STABILITY.md) · **Service status & endpoint directory:** [status.oddin-video.gg](https://status.oddin-video.gg)
16
+ > 📖 **Hosted docs & embed page:** [player-dev.oddin-video.gg](https://player-dev.oddin-video.gg) · **Full API reference:** [docs/API.md](docs/API.md) · **Examples** (vanilla / React / Vue): [examples/](examples/) · **API stability & versioning:** [docs/STABILITY.md](docs/STABILITY.md) · **Service status & endpoint directory:** [status.oddin-video.gg](https://status.oddin-video.gg)
17
17
 
18
18
  > ⚠️ **Before you integrate — a server-side prerequisite that is out of your code's hands:**
19
19
  > the api-key's **AllowedOrigins** (and, for iframes, **AllowedIframeParents**) **and** the
@@ -157,7 +157,7 @@ embed.setMuted(false);
157
157
 
158
158
  Both ends verify `event.origin` on every message. The embed page reads its
159
159
  config from `window.HAVIK_EMBED_CONFIG` (server-injected) or the URL query.
160
- A ready-to-host page is shipped at `embed/index.html`.
160
+ A ready-to-host template lives in the repo at [`embed/index.html`](embed/index.html) (not part of the npm package).
161
161
 
162
162
  > **Iframe auth:** the key's **AllowedIframeParents** must include the embedding
163
163
  > page's origin — iframe navigations send a `Referer`/`Sec-Fetch-Dest: iframe`,
@@ -1,7 +1,7 @@
1
1
  # Examples
2
2
 
3
3
  Copy-paste integration references for `@oddin-gg/havik-player`. See
4
- [../docs/API.md](../docs/API.md) for the full API.
4
+ [docs/API.md](https://github.com/oddin-gg/havik-html5/blob/main/docs/API.md) for the full API.
5
5
 
6
6
  | File | Stack | Notes |
7
7
  |---|---|---|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oddin-gg/havik-player",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Havik HTML5 player SDK — LL-HLS + DRM playback for Oddin live streams (managed, bring-your-own-player, and iframe-embed modes).",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -45,8 +45,6 @@
45
45
  "dist/index.d.cts",
46
46
  "dist/havik-player.global.js",
47
47
  "dist/havik-player.global.js.map",
48
- "embed",
49
- "docs",
50
48
  "examples",
51
49
  "README.md",
52
50
  "LICENSE",
@@ -58,6 +56,9 @@
58
56
  "build:lib": "vite build --config vite.lib.config.ts",
59
57
  "build:global": "vite build --config vite.global.config.ts",
60
58
  "build:demo": "vite build",
59
+ "dev:site": "vitepress dev site",
60
+ "build:site": "vitepress build site && vite build --config vite.embed.config.ts",
61
+ "preview:site": "vitepress preview site",
61
62
  "typecheck": "tsc --noEmit",
62
63
  "lint": "eslint .",
63
64
  "format": "prettier --write .",
@@ -96,6 +97,7 @@
96
97
  "typescript-eslint": "^8.62.0",
97
98
  "vite": "^8.1.0",
98
99
  "vite-plugin-dts": "^5.0.3",
100
+ "vitepress": "^1.6.4",
99
101
  "vitest": "^4.1.9"
100
102
  }
101
103
  }