@adelin-io/cli 0.1.0 → 0.1.1
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/authoring-release.json +12 -12
- package/package.json +1 -1
- package/skill/SKILL.md +1 -1
- package/skill/authoring/auth.md +3 -1
- package/skill/authoring/content-binding.md +1 -1
- package/skill/authoring/local-workflow.md +2 -0
- package/skill/authoring/player/index.md +1 -1
- package/skill/authoring/player/live-dvr.md +63 -22
- package/skill/authoring/player/playback.md +3 -2
- package/skill/reference/packages.md +1 -1
- package/types/adelin-content.d.ts +9 -1
- package/types/adelin-ui.d.ts +1 -1
package/authoring-release.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@adelin-io/cli",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"compilerVersion": "6.0.3",
|
|
6
6
|
"hostProtocol": 1,
|
|
7
7
|
"files": {
|
|
8
8
|
"skill/README.md": "aaf6180eeae111481b2ba59e25c3ed51aa31dd597d282a9fe96e9105c442b0eb",
|
|
9
|
-
"skill/SKILL.md": "
|
|
9
|
+
"skill/SKILL.md": "86e689115324bfae912cfb52858c55f7f99de1e50999cf2c702d7e878740c597",
|
|
10
10
|
"skill/authoring/access.md": "50a7e78dd2d47a76a0d1361d7c52e0b9aa92c5866ce01c5cd8f761b84fa47490",
|
|
11
11
|
"skill/authoring/analytics.md": "d6292c05e1981ca233621541941006d10cef8454f87844b21d44dcecdf94067f",
|
|
12
12
|
"skill/authoring/app-memory.md": "f664c2c5ae849424eb49a2d0adb2648bf5af19fc5a07145a6f74fb949bb2b917",
|
|
13
13
|
"skill/authoring/app-requirements.md": "294a1542691b189e9fef8423ef67c0fe2dbbf20152cc912ebe16115995c8ab7a",
|
|
14
14
|
"skill/authoring/app-structure.md": "c8e067e80c365c45cd523739436d74099ec36c3991c427117aa3110414b53355",
|
|
15
15
|
"skill/authoring/assets.md": "282827e5241ba6e541b47410815315c77d2e5a9de50f526a95d1210be40db010",
|
|
16
|
-
"skill/authoring/auth.md": "
|
|
17
|
-
"skill/authoring/content-binding.md": "
|
|
16
|
+
"skill/authoring/auth.md": "1af2c3affd7ee61928daeb5248494dd9c9b9e0e25a3069b1073812d18597f2fb",
|
|
17
|
+
"skill/authoring/content-binding.md": "124090ebdd6011bdd7c5f9c94f715ab15ad2af7741fae90fc5d3e2c7a2f442a8",
|
|
18
18
|
"skill/authoring/i18n.md": "a264167e27b9ea02c76647146601ee0d1d9a83e9d33d7cd60d9d0b39d9ee1f60",
|
|
19
19
|
"skill/authoring/language.md": "c3c9b3db109b6164206a09ec1a55a47912beedb4ab150e06cdb97c110e966d71",
|
|
20
|
-
"skill/authoring/local-workflow.md": "
|
|
20
|
+
"skill/authoring/local-workflow.md": "8914ac0bdfe98d23c7084428fccd7757d524a48324f379b3b3221f273abd8386",
|
|
21
21
|
"skill/authoring/offline/connectivity.md": "e00cb804cfdcda2950cb190432e8f36cd13d99b36075b5ceec71438671393e81",
|
|
22
22
|
"skill/authoring/offline/example.md": "2e79d91f05d7a55b4a3f136f0db28d02e458c9fc24b77ab0e074fff7ab635447",
|
|
23
23
|
"skill/authoring/offline/history-sync.md": "65652b536a84c47ddf04519e3dac35a9bed836fba67043fd43dabd77af3cd3ec",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"skill/authoring/player/controls.md": "4e90265dacecfc3c4852b0ad56b463afe3d8a8c5266102eed2ded69a22ec7b77",
|
|
31
31
|
"skill/authoring/player/downloads.md": "9a645abad9253e11f88881b2f422bb0f0ec519ef0836bb0b7cb8d8672de90066",
|
|
32
32
|
"skill/authoring/player/drm.md": "cf621117736991d30fa95e7a3766a26503779559a59f26918d5bc766b4a56d5b",
|
|
33
|
-
"skill/authoring/player/index.md": "
|
|
34
|
-
"skill/authoring/player/live-dvr.md": "
|
|
33
|
+
"skill/authoring/player/index.md": "7c08a121ca4eebb6467dcff76f35306c538e1dac8e83cee9d9f0eb8fb1043461",
|
|
34
|
+
"skill/authoring/player/live-dvr.md": "f1ec24d6754d7cd3c49c1cd4ba31c1d6c1d290e0ebfde591d335649fe31f9fe4",
|
|
35
35
|
"skill/authoring/player/platforms.md": "01f08d6ce203ef9fb4e2891656b88eb6a7f549363e69b2f9592f4298ef1edd08",
|
|
36
|
-
"skill/authoring/player/playback.md": "
|
|
36
|
+
"skill/authoring/player/playback.md": "dd2bbecb6d4cd1b517d58c5e3fa45e36be80d52d29f550adfdbe7b08c8895811",
|
|
37
37
|
"skill/authoring/player/tracks-subtitles.md": "6177a95fc77b492b251e7b3b966cb7129e6a7ac3c0c54b1b366dabf3fe9ed2a6",
|
|
38
38
|
"skill/authoring/profiles.md": "78e28c23b6600a74b486b26a6b4a36e88a51c19df6f1400dddd89b08f8766ad1",
|
|
39
39
|
"skill/authoring/remote-keys.md": "3053bbb32d0e407976974723161cb9f1c8fc64eb295464bb2ce6746749a4e780",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"skill/guides/final-pricing-capabilities.md": "007f246136a8168bc8b3e3c9fcbd0a57ae7a20476f122233fd3f023ca2b57ffe",
|
|
144
144
|
"skill/reference/api.md": "b940be3bfab5aaffb7b656e7b5d2d4d7b713d0b9b4450771d47153a9c2aa1bab",
|
|
145
145
|
"skill/reference/components.md": "7241c8ffb43b2643a2d7e13f4551ef330af60ced445c473b2c438122c918604d",
|
|
146
|
-
"skill/reference/packages.md": "
|
|
146
|
+
"skill/reference/packages.md": "4811247543f11bf3776e1d4217e7558f8a226efd8f144b09e2956aed1453fc39",
|
|
147
147
|
"skill/scripts/assemble-checkout.mjs": "3f35e00a76075b3b0e8c72b5477184a986b15ae1e933317ceaad9a08cbeb589c",
|
|
148
148
|
"skill/scripts/local-save.mjs": "334aeca83827b44985dcd95fc609fdb58a85a6a66ef5cbbc02f593e6b1309d18",
|
|
149
149
|
"skill/scripts/materialize.mjs": "c2c6313c49e43e413624314de3504afd3f46654e0e745523baf70c95c287e866",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"types/adelin-analytics.d.ts": "4b6baf0220221c0c8db675dbad83efc9098071d9f58e6a3f6fcd0abaebc05ba9",
|
|
153
153
|
"types/adelin-assets.d.ts": "ded7bc57fe580d05f926ae258d4cb4b7c245ed9dbbee9e46666a20a714058148",
|
|
154
154
|
"types/adelin-auth.d.ts": "599a32e40199fbc7f145c55a84176cfa1aaf2fbe4d866099f572f16c488a70d2",
|
|
155
|
-
"types/adelin-content.d.ts": "
|
|
155
|
+
"types/adelin-content.d.ts": "70e4bc6a9a5d773eda9117f7587fad588becefbfa23ca56e61a087b525d29b79",
|
|
156
156
|
"types/adelin-device.d.ts": "ba6da68220da01412dfa5ab6d23bbef7123faefdb377214ad315e4a5a3f96667",
|
|
157
157
|
"types/adelin-downloads.d.ts": "9540c1103007aba4b860b90f8379258c8ae6c622fb7979e425c25244acc2105e",
|
|
158
158
|
"types/adelin-env.d.ts": "1d05146bc37a58b6efa4efab1420df82a1b827c508a7da1de0c23eff96fe83e9",
|
|
@@ -165,10 +165,10 @@
|
|
|
165
165
|
"types/adelin-reanimated.d.ts": "a79e933f4a81a5c50b01ca3689438ee7cf96443d29333ad9656d4e75309e0ed2",
|
|
166
166
|
"types/adelin-storage.d.ts": "442549fa72f9eb3ce323379868a6e92cb86e586fa032cda40614fff1503d15a1",
|
|
167
167
|
"types/adelin-store.d.ts": "5fd4cd41cd08ebb176563e1e77d8bf22ddef8963f4313fd8d297fb7a23468d3d",
|
|
168
|
-
"types/adelin-ui.d.ts": "
|
|
168
|
+
"types/adelin-ui.d.ts": "17b19adfdfc7b1b33183a1e22bd707b2e6aee590357db266c3f974bfc2106143",
|
|
169
169
|
"types/adelin-utils.d.ts": "df6357a3fa87024f6053cd9027cf905422058be5881dbf7fdb3d0ef97be93c83",
|
|
170
170
|
"types/adelin-worklets.d.ts": "f56edc56715df189933f180605ee8c41a785d11ad0c0d454258f1c1f71159ab9",
|
|
171
171
|
"workspace-tsconfig.json": "a1321a0ea06e5fb9d4e3c1a7d92045e730b44114ab10553172142cb978b9147a"
|
|
172
172
|
},
|
|
173
|
-
"contractId": "
|
|
173
|
+
"contractId": "fbd23656dc115c76c0ce8b3b3f0d9f0722b987a5af609229a51d90570e81d873"
|
|
174
174
|
}
|
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -87,7 +87,7 @@ These rules describe authored app code. Hosted HTML/CSS design artifacts follow
|
|
|
87
87
|
| Adding sign-in, sign-up, the sign-in gate or an account screen | [authoring/auth.md](authoring/auth.md) |
|
|
88
88
|
| Measurement, consent banners or the account screen's privacy choices | [authoring/analytics.md](authoring/analytics.md) |
|
|
89
89
|
| Adding profiles, Who's watching, saved titles, Continue Watching or Resume | [authoring/profiles.md](authoring/profiles.md) |
|
|
90
|
-
| Adding playback, controls, casting or downloads | [authoring/player/index.md](authoring/player/index.md) |
|
|
90
|
+
| Adding playback, live viewer counts, controls, casting or downloads | [authoring/player/index.md](authoring/player/index.md) |
|
|
91
91
|
| Adding explicit offline startup, local navigation or history replay | [authoring/offline/index.md](authoring/offline/index.md) |
|
|
92
92
|
| Adding a search screen | [authoring/search.md](authoring/search.md) |
|
|
93
93
|
| Showing the app in several languages | [authoring/i18n.md](authoring/i18n.md) |
|
package/skill/authoring/auth.md
CHANGED
|
@@ -30,8 +30,10 @@ can show; anything meant only for signed-in viewers belongs in content, never in
|
|
|
30
30
|
content. Keep sign-in reachable from the account screen for that case. Never ask the builder
|
|
31
31
|
about the setting and never write a second version of the app for it.
|
|
32
32
|
- Content loads again by itself after sign-in; do not refetch it yourself.
|
|
33
|
-
- In the preview the builder is already signed in as their own test viewer, so the app opens
|
|
33
|
+
- In the builder preview the builder is already signed in as their own test viewer, so the app opens
|
|
34
34
|
past the gate. They can sign out to try the real sign-in and sign-up pages.
|
|
35
|
+
- Public and shared preview links use the same app accounts as the live app. Visitors can
|
|
36
|
+
register or sign in through the app's forms; they are not automatically signed in as a test viewer.
|
|
35
37
|
|
|
36
38
|
Add a profile picker as a third early return when the app needs one ([profiles.md](profiles.md)).
|
|
37
39
|
|
|
@@ -23,4 +23,4 @@ For playback, controls, output selection and local video sources, read the
|
|
|
23
23
|
|
|
24
24
|
Playback consumes finite authority only after selection. Catalogue loading, scrolling and metadata refresh must not request a playback grant. Use the supplied admitted source and refresh it through its issuer when required; never reconstruct provider URLs or extend an expired grant locally. Stop the player when current authority is refused.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
For live title selection and runtime-owned admission, read [Live streams and DVR](player/live-dvr.md).
|
|
@@ -139,6 +139,8 @@ The CLI writes exactly one JSON envelope and newline to stdout: `{ok:true,operat
|
|
|
139
139
|
|
|
140
140
|
Sample content is imported only when an app is created and is never re-imported. These commands inspect or resume that creation-time import; they never start an import, reset it or change categories. An app without an import returns `none:true` and explains that sample content is added only when the app is created. Viewing requires `library.view`; advancing requires `library.manage` and its current explicit consent.
|
|
141
141
|
|
|
142
|
+
Prepared sample entries publish automatically when their category finishes importing. While media or artwork is still being prepared, entries stay draft. A completed import does not republish entries the builder later returns to draft or restore deleted content; owner-controlled pending changes, schedules and skipped resources remain untouched.
|
|
143
|
+
|
|
142
144
|
Status lists each import's `importId`, categories, completed categories and state (`saving`, `awaiting_resources` or `complete`), plus saved/total/missing entries, ready/total/failed artwork and media, and admitted/total playback. `skipped:{artwork,media,playback}` counts owner-controlled work preserved during advance; these resources are never counted as ready or admitted. `stalled:true` means incomplete with no live resource lease. `busyUntil` means another advancer holds a lease; `next` is `advance`, `wait` or `none`. Failure details contain at most 20 safe `{stage,code,at}` records ordered by actual failure time, newest first. Status is read-only. Advance preserves edited, published or removed owner content, records conflicting attachments as skipped and continues healthy work without resetting or reimporting.
|
|
143
145
|
|
|
144
146
|
```sh
|
|
@@ -26,7 +26,7 @@ export default function Watch(props: Props) {
|
|
|
26
26
|
| Sources, lifecycle, transport and errors | [Playback](playback.md) |
|
|
27
27
|
| Remote keys, auto-hide, scrubbing, speed, fit and controls | [Controls](controls.md) |
|
|
28
28
|
| Audio, sidecar subtitles and subtitle styling | [Tracks and subtitles](tracks-subtitles.md) |
|
|
29
|
-
| Live streams and DVR limitations | [Live and DVR](live-dvr.md) |
|
|
29
|
+
| Live streams, optional viewer counts and DVR limitations | [Live and DVR](live-dvr.md) |
|
|
30
30
|
| Protected media and license ownership | [DRM](drm.md) |
|
|
31
31
|
| Sender state, receivers and output selection | [Casting](casting.md) |
|
|
32
32
|
| Task lifecycle and local playback | [Downloads](downloads.md) |
|
|
@@ -1,33 +1,74 @@
|
|
|
1
1
|
# Live streams and DVR
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
Select the current library row by ID. For a `mediaType: "live"` item, use
|
|
4
|
+
`useVideoPlayer(undefined, { entryId })` and mount its `VideoView` only when the
|
|
5
|
+
viewer chooses to watch. Live rows do not need a catalogue `playbackSource`.
|
|
6
|
+
The runtime obtains and renews finite playback authority for the current app,
|
|
7
|
+
entry and broadcast. It handles free guest viewing and private preview access;
|
|
8
|
+
authored code does not call admission endpoints, persist operation IDs, construct
|
|
9
|
+
HLS URLs or schedule renewal requests.
|
|
10
|
+
|
|
11
|
+
Use `live.state` for Live now, Upcoming and Offline labels. An upcoming
|
|
12
|
+
announcement can supply `startsAtText`, formatted in its time zone and the
|
|
13
|
+
viewer's language. Offer Watch live only for an on-air row with open access;
|
|
14
|
+
preserve the normal sign-in or unlock flow for restricted content. Catalogue
|
|
15
|
+
refreshes preserve selection and must not trigger playback. The runtime refreshes
|
|
16
|
+
live metadata while the app is active and on resume, so library reducers should
|
|
17
|
+
retain ready data during refresh.
|
|
18
|
+
|
|
19
|
+
An offline title cannot start a new session. An already admitted broadcast may
|
|
20
|
+
continue under its existing completion policy while authority remains valid.
|
|
21
|
+
Current access refusal, expiry, deletion or broadcast replacement stops playback.
|
|
22
|
+
Never bypass a refused grant or substitute another title. Source replacement
|
|
23
|
+
during renewal does not guarantee seamless buffer preservation.
|
|
24
|
+
|
|
25
|
+
Live playback does not save VOD progress, resume a saved position, mark completion,
|
|
26
|
+
auto-advance or download. A saved recording is ordinary VOD. Hide timelines,
|
|
27
|
+
scrub previews and seek controls for live playback. The player exposes no live
|
|
28
|
+
edge, seekable DVR range or dedicated go-live command; do not infer these from a
|
|
29
|
+
finite duration or encoder settings. Follow [controls](controls.md) for supported
|
|
30
|
+
input and [playback](playback.md) for recovery.
|
|
22
31
|
|
|
23
32
|
```tsx
|
|
24
33
|
import { Screen, VideoView, Text, Pressable, useVideoPlayer } from "@adelin/ui";
|
|
25
|
-
|
|
26
|
-
interface Props { source?: VideoSource }
|
|
34
|
+
interface Props { entryId: string }
|
|
27
35
|
export default function Live(props: Props) {
|
|
28
|
-
const player = useVideoPlayer(props.
|
|
36
|
+
const player = useVideoPlayer(undefined, { entryId: props.entryId });
|
|
29
37
|
return <Screen><VideoView player={player} style={{ flex: 1 }} />
|
|
30
38
|
<Pressable onPress={() => player.togglePlay()}><Text>{player.playing ? "Pause" : "Play"}</Text></Pressable>
|
|
31
39
|
</Screen>;
|
|
32
40
|
}
|
|
33
41
|
```
|
|
42
|
+
|
|
43
|
+
## Optional viewer counts
|
|
44
|
+
|
|
45
|
+
Use `useLiveViewers(entryId, { enabled })` from `@adelin/content` when the builder
|
|
46
|
+
wants a watching annotation on a live title or player. Call it unconditionally;
|
|
47
|
+
use `enabled` to limit it to the title being shown. The runtime shares polling
|
|
48
|
+
between components, pauses it when the screen or app is inactive, and handles
|
|
49
|
+
guest, signed-in and private-preview authority. Do not write polling timers or
|
|
50
|
+
call count endpoints from authored code. Reading a count does not start playback.
|
|
51
|
+
|
|
52
|
+
The result has `state`, `count` and `observedAt`. Show a current annotation only
|
|
53
|
+
for `fresh`; zero is a valid count. `stale` is an older observation and may be
|
|
54
|
+
shown only with wording such as “Recently … watching”. Hide the annotation for
|
|
55
|
+
`idle`, `loading`, `hidden` and `unavailable`; their count is `null`, not zero.
|
|
56
|
+
The creator's visibility setting is authoritative. Do not substitute a creator
|
|
57
|
+
tool's count when the app returns `hidden`.
|
|
58
|
+
|
|
59
|
+
Counts are concurrent viewers reported by the streaming provider. They are not
|
|
60
|
+
an exact count of people using this app. The runtime ages observations without
|
|
61
|
+
depending on the device's wall clock and removes expired or refused data.
|
|
62
|
+
This binding is available on the web and native app runtimes; Roku is not covered.
|
|
63
|
+
|
|
64
|
+
```tsx
|
|
65
|
+
import { Text } from "@adelin/ui";
|
|
66
|
+
import { useLiveViewers } from "@adelin/content";
|
|
67
|
+
interface Props { entryId: string; visible: boolean }
|
|
68
|
+
export default function Watching(props: Props) {
|
|
69
|
+
const viewers = useLiveViewers(props.entryId, { enabled: props.visible });
|
|
70
|
+
return viewers.state === "fresh" && viewers.count !== null
|
|
71
|
+
? <Text>{viewers.count} watching</Text>
|
|
72
|
+
: null;
|
|
73
|
+
}
|
|
74
|
+
```
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Pass a library item's `playbackSource` to `useVideoPlayer`. Do not reconstruct its
|
|
4
4
|
URL, remove query parameters or add request headers. An undefined source waits
|
|
5
|
-
for content
|
|
5
|
+
for content unless `entryId` selects a current live title as described in
|
|
6
|
+
[Live streams and DVR](live-dvr.md); never substitute sample media. The runtime keeps
|
|
6
7
|
credential renewals on the same media identity and disposes an outgoing engine
|
|
7
8
|
when that identity changes or its view unmounts.
|
|
8
9
|
|
|
@@ -12,7 +13,7 @@ are handler commands. `stop()` stops playback; it is not a casting disconnect.
|
|
|
12
13
|
Do not keep a parallel playback clock. Read the formatted time and scrub fields
|
|
13
14
|
described in [controls](controls.md).
|
|
14
15
|
|
|
15
|
-
Pass `entryId` for a library title.
|
|
16
|
+
Pass `entryId` for a library title. For VOD with a signed-in viewer, the runtime selects
|
|
16
17
|
the chosen profile or its default, resumes the saved place and saves progress on
|
|
17
18
|
pause, end, close, background and every five minutes of playback. Leave `entryId`
|
|
18
19
|
off for trailers and previews. The app reads saved history through
|
|
@@ -12,7 +12,7 @@ component.
|
|
|
12
12
|
- `@adelin/store`: useSelector, useDispatch, createSlice, createAsyncThunk, appDispatch
|
|
13
13
|
- `@adelin/auth`: useAuth, signIn, signUp, signOut, requestPasswordRecovery, completePasswordRecovery, addPasswordLoginMethod, addProviderLoginMethod, deleteAccount, setMarketingConsent, signInWithProvider
|
|
14
14
|
- `@adelin/access`: useAccess, subscribe, startTrial, buy, rent, restorePurchases, manageSubscription
|
|
15
|
-
- `@adelin/content`: content, useSearch
|
|
15
|
+
- `@adelin/content`: content, useSearch, useLiveViewers
|
|
16
16
|
- `@adelin/utils`: formatDate, uniqueBy
|
|
17
17
|
- `@adelin/storage`: storage
|
|
18
18
|
- `@adelin/device`: useConnectivity, useAppMode, appMode, useTVEventHandler, useBackHandler, Keys, exitApp, BackHandler, TVEventControl, DeviceInfo, Platform, capabilities
|
|
@@ -48,7 +48,7 @@ declare module "@adelin/content" {
|
|
|
48
48
|
entryId: string;
|
|
49
49
|
state: "live" | "offline";
|
|
50
50
|
broadcastId: string | null;
|
|
51
|
-
announcement: { startsAt: string; timeZone: string } | null;
|
|
51
|
+
announcement: { startsAt: string; timeZone: string; startsAtText?: string } | null;
|
|
52
52
|
}
|
|
53
53
|
/** One title's access, decided by the server; `@adelin/access` re-exports it. */
|
|
54
54
|
export interface ContentItemAccess {
|
|
@@ -93,6 +93,14 @@ declare module "@adelin/content" {
|
|
|
93
93
|
artwork: { poster?: string; backdrop?: string };
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
export interface LiveViewersState {
|
|
97
|
+
state: 'idle' | 'loading' | 'fresh' | 'stale' | 'unavailable' | 'hidden';
|
|
98
|
+
count: number | null;
|
|
99
|
+
observedAt: string | null;
|
|
100
|
+
}
|
|
101
|
+
/** Optional provider concurrent viewer observation while the screen is active; native and web only. */
|
|
102
|
+
export function useLiveViewers(entryId: string | null | undefined, options?: { enabled?: boolean }): LiveViewersState;
|
|
103
|
+
|
|
96
104
|
export const content: {
|
|
97
105
|
/** Loads the app's content rows. */
|
|
98
106
|
list(): Promise<ContentItem[]>;
|
package/types/adelin-ui.d.ts
CHANGED
|
@@ -1510,7 +1510,7 @@ declare module "@adelin/ui" {
|
|
|
1510
1510
|
export const ScrollTarget: (props: { y: number; children: CatalogChildren }) => ReactNode;
|
|
1511
1511
|
export const Portal: (props: { open: boolean; onClose?: () => void; children?: CatalogChildren }) => ReactNode;
|
|
1512
1512
|
// --- Video ---
|
|
1513
|
-
/** A player to show with <VideoView player={player} />; undefined source
|
|
1513
|
+
/** A player to show with <VideoView player={player} />; undefined source with entryId selects a current live title; otherwise it idles; the app maps remote keys with useTVEventHandler and calls player.scrubForward()/scrubBackward(); autoHideControls: true hides controlsVisible after 4 s of playback without input; scrub tunes the tap step, hold tiers, repeat and commit timing, and pause/resume (resume: false keeps it paused after the seek); entryId resumes and saves the active profile's VOD watch progress; live playback has no saved progress. */
|
|
1514
1514
|
export function useVideoPlayer(
|
|
1515
1515
|
source: VideoSource | undefined,
|
|
1516
1516
|
options?: { autoPlay?: boolean; loop?: boolean; muted?: boolean; autoHideControls?: boolean; scrub?: { step?: number; hold?: { after: number; step: number }[]; repeatMs?: number; commitMs?: number; pause?: boolean; resume?: number | false }; entryId?: string },
|