@livo-tv/sdk 1.12.0 → 1.13.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 +15 -5
- package/dist/index.cjs +9546 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9483 -5
- package/dist/index.js.map +1 -1
- package/dist/studio/index.cjs +27383 -4352
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +27171 -4137
- package/dist/studio/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,17 +33,27 @@ const theme: EmbedTheme = {
|
|
|
33
33
|
/>;
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
`@livo-tv/sdk`, `@livo-tv/sdk/studio`, and `@livo-tv/sdk/condo` (`LivoCommunity`) are client entries (the published bundles start with `"use client"`). Import them from `"use client"` files in Next.js App Router — do not import those entries from a Server Component page. Tailwind hosts
|
|
36
|
+
`@livo-tv/sdk`, `@livo-tv/sdk/studio`, and `@livo-tv/sdk/condo` (`LivoCommunity`) are client entries (the published bundles start with `"use client"`). Import them from `"use client"` files in Next.js App Router — do not import those entries from a Server Component page. Do **not** install `@livo-tv/blocks` or add `transpilePackages` — the SDK bundles its UI internals. Tailwind hosts that restyle the embed can `@source` `node_modules/@livo-tv/sdk/dist/*.{js,cjs,mjs}`.
|
|
37
37
|
|
|
38
38
|
Root `<LivoStudio>` still iframes `app.livo.tv` and is **not** the partner contract. Native studio has no runtime dependency on `player.livo.tv` (no `postMessage` bridge, no hard-coded player origin). The hosted-player URL helpers (`playerUrl`) stay available for Livo's own player app.
|
|
39
39
|
|
|
40
40
|
## Native studio (RealtimeKit)
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Install:
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
```text
|
|
45
|
+
pnpm add @livo-tv/sdk
|
|
46
|
+
# studio only:
|
|
47
|
+
pnpm add @cloudflare/realtimekit
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Peers:
|
|
51
|
+
|
|
52
|
+
- `react` / `react-dom` (required)
|
|
53
|
+
- `@cloudflare/realtimekit` (optional, lazy-imported; studio only)
|
|
54
|
+
- `hls.js` (optional, for `<LivoPlayer>` on browsers without native HLS)
|
|
55
|
+
|
|
56
|
+
Do not add `@livo-tv/blocks` as a host dependency. The published player and studio bundles inline it (and the UI kit). Next.js does not need `transpilePackages`.
|
|
47
57
|
|
|
48
58
|
Send this header on the route that mounts the studio (camera, mic, and screen share):
|
|
49
59
|
|