@thestatic-tv/dcl-sdk 2.10.1 → 2.11.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/README.md +28 -2
- package/dist/index.d.mts +94 -3
- package/dist/index.d.ts +94 -3
- package/dist/index.js +401 -27
- package/dist/index.mjs +401 -27
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -211,8 +211,8 @@ linked to a TheStatic.tv account) and to the scene's own admins. Switch it from
|
|
|
211
211
|
MODE, ON or OFF) or from your scene's page on thestatic.tv. thestatic.tv decides who may switch it and who gets in;
|
|
212
212
|
every visitor's copy reads its own standing within a few seconds of the switch.
|
|
213
213
|
|
|
214
|
-
- **Kept out:** a visitor who is not admitted gets what a ban gives (the walls over your parcels, the move
|
|
215
|
-
only the notice), and the notice reads PRIVATE EVENT with a BECOME A CITIZEN button that opens thestatic.tv's sign-in
|
|
214
|
+
- **Kept out:** a visitor who is not admitted gets what a ban gives (the walls over your parcels, the move to your front
|
|
215
|
+
entry, only the notice), and the notice reads PRIVATE EVENT with a BECOME A CITIZEN button that opens thestatic.tv's sign-in
|
|
216
216
|
page. Once they link their wallet they get in at their next read, within a minute.
|
|
217
217
|
- **Precedence:** banned, then kicked, then private. `staticTV.visitorStanding` reads `'private'` and `onBlockedChange`
|
|
218
218
|
is called with `(true, 'private')`, so stop your own media there as for a ban.
|
|
@@ -231,6 +231,32 @@ async function onDoorClicked() {
|
|
|
231
231
|
answer when it is under 5 seconds old, and never waits more than 10 seconds (then it answers the last one). Both answer
|
|
232
232
|
false without the Pro tier's Admin Panel, and on a scene without the Venue tier (thestatic.tv answers it to Venue scenes alone). A scene on an SDK from before private mode is open whatever the switch says.
|
|
233
233
|
|
|
234
|
+
## Locked channels (2.11.0)
|
|
235
|
+
|
|
236
|
+
thestatic.tv can lock a channel to its citizens. A locked channel's stream is handed out only as a short link, good
|
|
237
|
+
for 4 hours, to a visitor thestatic.tv admits: the channel's owner, a platform admin, or a TheStatic.tv citizen. A
|
|
238
|
+
guest is never admitted. thestatic.tv checks the link on every piece of the stream, so the lock holds even against a
|
|
239
|
+
modified explorer, which private mode alone does not.
|
|
240
|
+
|
|
241
|
+
What your scene sees for a locked channel:
|
|
242
|
+
|
|
243
|
+
- **In the guide** it stays in the lineup with `locked: true`, its slug in `channel`, an empty `src`, and the badge
|
|
244
|
+
`LOCKED: TheStatic.tv citizens` on its card. When a visitor picks it, the SDK asks thestatic.tv for the link, signed
|
|
245
|
+
as that visitor, and plays it: your `videoScreen` or `onVideoPlay`, and your `guideUI.onVideoSelect`, get the entry
|
|
246
|
+
with the link as its `src`, as they get any pick. A visitor who is not admitted gets nothing played, and the notice
|
|
247
|
+
reads `LOCKED: TheStatic.tv citizens`.
|
|
248
|
+
- **In the Admin Panel** the HLS Playback line reads `LOCKED: TheStatic.tv citizens`. Play on Screen plays your own link
|
|
249
|
+
and sends everyone `{ channel, locked: true }`, never a url, so each visitor's copy asks for its own link. Plays from
|
|
250
|
+
your scene's page on thestatic.tv and its slots arrive the same way.
|
|
251
|
+
- **On a long show** the SDK asks for a fresh link 10 minutes before the current one runs out and switches to it. If
|
|
252
|
+
the visitor is no longer admitted by then, the video stops and the notice says why.
|
|
253
|
+
- **Blocked visitors** (banned, kicked, kept out by private mode) ask for nothing.
|
|
254
|
+
|
|
255
|
+
The link is that visitor's own pass: keep it in the scene, and do not send it anywhere. If you play channels yourself
|
|
256
|
+
from `staticTV.guide`, a locked `Channel` has `locked: true` and no `streamUrl`; play it through the Guide UI, which asks
|
|
257
|
+
for the link (the SDK has no public call for it yet). SDK versions before this one play nothing for a locked channel,
|
|
258
|
+
since its entries and commands carry no url.
|
|
259
|
+
|
|
234
260
|
## Frames (2.10.0, Venue tier)
|
|
235
261
|
|
|
236
262
|
On the Venue tier, your scene declares its picture frames: spots it places itself, each with an id, a label for your
|
package/dist/index.d.mts
CHANGED
|
@@ -161,6 +161,7 @@ interface Channel {
|
|
|
161
161
|
id: string;
|
|
162
162
|
slug: string;
|
|
163
163
|
name: string;
|
|
164
|
+
/** The stream's url - absent for a locked channel (see `locked`) */
|
|
164
165
|
streamUrl: string;
|
|
165
166
|
isLive: boolean;
|
|
166
167
|
currentViewers: number;
|
|
@@ -173,6 +174,12 @@ interface Channel {
|
|
|
173
174
|
* that plays it without the guide UI asks the viewer yes or no first.
|
|
174
175
|
*/
|
|
175
176
|
isNsfw?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* True for a locked channel (thestatic.tv's stream lock, 2026-11-20): it carries its slug and no streamUrl, and
|
|
179
|
+
* thestatic.tv hands its link only to a visitor it admits (the channel's owner, a platform admin, a TheStatic.tv
|
|
180
|
+
* citizen). The Guide UI asks for that link; this module plays nothing.
|
|
181
|
+
*/
|
|
182
|
+
locked?: boolean;
|
|
176
183
|
}
|
|
177
184
|
/**
|
|
178
185
|
* VOD (Video on Demand) information
|
|
@@ -284,6 +291,15 @@ interface GuideVideo {
|
|
|
284
291
|
* stays in the lineup; the guide UI asks the viewer yes or no before it calls onVideoSelect.
|
|
285
292
|
*/
|
|
286
293
|
isNsfw?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* True for a locked channel's entry (thestatic.tv's stream lock, 2026-11-20): its `src` is empty and `channel` names
|
|
296
|
+
* it. A pick asks thestatic.tv for the link, signed as the visitor, and plays it only when the visitor is admitted -
|
|
297
|
+
* the scene's `onVideoPlay` and `guideUI.onVideoSelect` then get the entry with the link as its `src`; a refusal
|
|
298
|
+
* hands them nothing.
|
|
299
|
+
*/
|
|
300
|
+
locked?: boolean;
|
|
301
|
+
/** A locked entry's channel slug - what the SDK asks thestatic.tv's door for (2026-11-20) */
|
|
302
|
+
channel?: string;
|
|
287
303
|
}
|
|
288
304
|
/**
|
|
289
305
|
* Featured playlist for the guide UI
|
|
@@ -299,7 +315,9 @@ interface GuideUIConfig {
|
|
|
299
315
|
/**
|
|
300
316
|
* Callback when user selects a video
|
|
301
317
|
* Developer should handle playback. An 18+ entry (isNsfw) arrives only after the viewer answers
|
|
302
|
-
* the guide's MATURE CONTENT question yes (2.8.0); a no never calls it.
|
|
318
|
+
* the guide's MATURE CONTENT question yes (2.8.0); a no never calls it. Through the client, a locked
|
|
319
|
+
* channel's entry (2026-11-20) arrives only once thestatic.tv hands this visitor its link, with that
|
|
320
|
+
* link as its src (and again with each fresh link before it expires); a refused visitor's never does.
|
|
303
321
|
*/
|
|
304
322
|
onVideoSelect?: (video: GuideVideo) => void;
|
|
305
323
|
/**
|
|
@@ -353,7 +371,15 @@ interface StreamData {
|
|
|
353
371
|
channelId: string | null;
|
|
354
372
|
channelName?: string;
|
|
355
373
|
isLive: boolean;
|
|
374
|
+
/** The stream's playback url - null or absent for a locked channel (see `locked`) */
|
|
356
375
|
hlsUrl: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* True when the scene's channel is locked (thestatic.tv's stream lock, 2026-11-20): the answer carries its `slug`
|
|
378
|
+
* and no hlsUrl, and the panel's Play on Screen queues `{ channel, locked: true }`, never a url
|
|
379
|
+
*/
|
|
380
|
+
locked?: boolean;
|
|
381
|
+
/** The channel's slug, beside `locked` */
|
|
382
|
+
slug?: string;
|
|
357
383
|
rtmpUrl?: string | null;
|
|
358
384
|
streamKey?: string | null;
|
|
359
385
|
currentViewers: number;
|
|
@@ -845,6 +871,16 @@ declare class FramesModule {
|
|
|
845
871
|
private postClick;
|
|
846
872
|
}
|
|
847
873
|
|
|
874
|
+
/** One locked play's hands: where its link goes, and (optional) what stops it and who else hears a refusal */
|
|
875
|
+
interface LockedPlayHandlers {
|
|
876
|
+
/** Plays the link - the first answer's, then each re-ask's new one */
|
|
877
|
+
deliver: (url: string) => void;
|
|
878
|
+
/** A re-ask was refused: the visitor is no longer admitted, so what plays stops */
|
|
879
|
+
stop?: () => void;
|
|
880
|
+
/** The play got no link - besides the notice (the Admin Panel's video line shows it) */
|
|
881
|
+
failed?: (line: string) => void;
|
|
882
|
+
}
|
|
883
|
+
|
|
848
884
|
/**
|
|
849
885
|
* Guide UI Module - provides channel/video browser
|
|
850
886
|
*/
|
|
@@ -1136,6 +1172,11 @@ declare class ModerationModule {
|
|
|
1136
1172
|
* Default, the broadcast, the kicks - goes through one signed sender to the scene's command queue on thestatic.tv,
|
|
1137
1173
|
* which every visitor's copy polls; the presser's copy does the same at once and skips its own command when the poll
|
|
1138
1174
|
* returns it. Until then the Video and Broadcast buttons reached the presser's copy alone.
|
|
1175
|
+
*
|
|
1176
|
+
* Since thestatic.tv's stream lock (2026-11-20) a locked channel never travels as a url: a queued video command for one
|
|
1177
|
+
* carries `{ channel, locked: true }`, Play on Screen and PLAYBACK Play queue the same, and every copy - the presser's
|
|
1178
|
+
* included - asks for its own link, signed as its visitor (the client's stream link, modules/stream-link.ts), and
|
|
1179
|
+
* plays it only when thestatic.tv admits them.
|
|
1139
1180
|
*/
|
|
1140
1181
|
|
|
1141
1182
|
declare class AdminPanelUIModule {
|
|
@@ -1179,6 +1220,11 @@ declare class AdminPanelUIModule {
|
|
|
1179
1220
|
private broadcastStatus;
|
|
1180
1221
|
/** The url the screen last played - the scene's current one from the video state at load, or the last play here - which PLAYBACK Play sends */
|
|
1181
1222
|
private currentVideoUrl;
|
|
1223
|
+
/**
|
|
1224
|
+
* The locked channel the screen last played (2026-11-20), in place of a url: PLAYBACK Play queues it again as
|
|
1225
|
+
* `{ channel, locked: true }` - a locked channel's link is this visitor's own and never goes into the queue
|
|
1226
|
+
*/
|
|
1227
|
+
private currentLockedChannel;
|
|
1182
1228
|
private controls;
|
|
1183
1229
|
private currentOption;
|
|
1184
1230
|
private controlStatus;
|
|
@@ -1233,6 +1279,15 @@ declare class AdminPanelUIModule {
|
|
|
1233
1279
|
get isVisitorBlocked(): boolean;
|
|
1234
1280
|
/** A url the scene's queue or the slots would play - nothing while this visitor is blocked */
|
|
1235
1281
|
private playUrl;
|
|
1282
|
+
/**
|
|
1283
|
+
* A locked channel's play (thestatic.tv's stream lock, 2026-11-20): a queued video command carrying
|
|
1284
|
+
* `{ channel, locked: true }`, the owner's Play on Screen for a locked stream, a locked slot. This copy asks
|
|
1285
|
+
* thestatic.tv's door for the link, signed as this visitor (the client's stream link: one request in flight per
|
|
1286
|
+
* channel, the re-ask before it expires), and plays it through onVideoPlay only when admitted. A refusal plays
|
|
1287
|
+
* nothing; the notice and this tab's video line say LOCKED: TheStatic.tv citizens. A blocked visitor asks nothing.
|
|
1288
|
+
* The link itself is never kept for PLAYBACK Play or sent to the queue - the channel is.
|
|
1289
|
+
*/
|
|
1290
|
+
private playLocked;
|
|
1236
1291
|
/**
|
|
1237
1292
|
* Toggle the admin panel open/closed
|
|
1238
1293
|
*/
|
|
@@ -1296,7 +1351,9 @@ declare class AdminPanelUIModule {
|
|
|
1296
1351
|
* Every gated admin call is a DCL signed fetch (thestatic.tv STATIC-01, 2026-10-07): the
|
|
1297
1352
|
* explorer signs it with the player's identity, and the server checks the signature and that it
|
|
1298
1353
|
* came from the scene deployed at this scene's registered location. A wallet named in a query or
|
|
1299
|
-
* body proved nothing and is no longer sent. Returns a fetch-like shape for the call sites.
|
|
1354
|
+
* body proved nothing and is no longer sent. Returns a fetch-like shape for the call sites. The
|
|
1355
|
+
* request itself lives in utils/signed-request.ts since 2026-11-20 (it was here), so the locked
|
|
1356
|
+
* channel's door - which a Standard scene asks too, with no panel - goes through the same one.
|
|
1300
1357
|
*/
|
|
1301
1358
|
private signedRequest;
|
|
1302
1359
|
/**
|
|
@@ -1381,7 +1438,12 @@ declare class AdminPanelUIModule {
|
|
|
1381
1438
|
private myName;
|
|
1382
1439
|
/** PLAY NOW: the typed url plays here and is queued as videoSetUrl, which thestatic.tv keeps for later arrivals */
|
|
1383
1440
|
private playNow;
|
|
1384
|
-
/**
|
|
1441
|
+
/**
|
|
1442
|
+
* Play on Screen: the scene's own live stream, as PLAY NOW with its HLS url (what the scene's page sends for it). A
|
|
1443
|
+
* locked stream (2026-11-20: the /stream answer says locked, with its slug and no hlsUrl) plays here through the
|
|
1444
|
+
* link asked for signed as the owner, and queues `videoSetUrl { channel, locked: true }` - never a url, so every
|
|
1445
|
+
* visitor's copy asks for its own link and only the admitted play it.
|
|
1446
|
+
*/
|
|
1385
1447
|
private playStreamOnScreen;
|
|
1386
1448
|
/** Play 1-5: the slot plays here (its url from the video state) and is queued as videoPlaySlot; the server resolves its url for everyone */
|
|
1387
1449
|
private pressSlot;
|
|
@@ -1473,6 +1535,12 @@ declare class StaticTVClient {
|
|
|
1473
1535
|
* declared frames from construction; reads, uploads and clicks only once the session confirms Venue.
|
|
1474
1536
|
*/
|
|
1475
1537
|
readonly frames: FramesModule;
|
|
1538
|
+
/**
|
|
1539
|
+
* A locked channel's link, asked for signed as the visitor (thestatic.tv's stream lock, 2026-11-20): every play of a
|
|
1540
|
+
* locked channel - a guide pick, a queued video command, the panel's Play on Screen - goes through it, and so does
|
|
1541
|
+
* the re-ask before the link expires. Internal: scenes play a locked channel through the Guide UI and the panel.
|
|
1542
|
+
*/
|
|
1543
|
+
private readonly streamLink;
|
|
1476
1544
|
/** UI scale - fixed at 1.0. DCL's UI system auto-scales based on viewport. */
|
|
1477
1545
|
readonly uiScale: number;
|
|
1478
1546
|
/** Get the API base URL (for internal module use) */
|
|
@@ -1656,6 +1724,29 @@ declare class StaticTVClient {
|
|
|
1656
1724
|
* @internal
|
|
1657
1725
|
*/
|
|
1658
1726
|
_handleGuideVideoSelect(video: GuideVideo): void;
|
|
1727
|
+
/**
|
|
1728
|
+
* A guide entry with its url, onto the SDK's player and/or onVideoPlay, with the stream verification - an unlocked
|
|
1729
|
+
* pick's, and a locked one's once its link is in hand (2026-11-20; until then this was _handleGuideVideoSelect's body)
|
|
1730
|
+
* @internal
|
|
1731
|
+
*/
|
|
1732
|
+
private _playGuideEntry;
|
|
1733
|
+
/**
|
|
1734
|
+
* A locked channel's guide entry picked (thestatic.tv's stream lock, 2026-11-20). It carries no url: the SDK asks
|
|
1735
|
+
* thestatic.tv's door for the link, signed as this visitor, and only with a link in hand does the entry go on - to
|
|
1736
|
+
* the SDK's player and onVideoPlay as an unlocked pick does, and to the scene's own guideUI.onVideoSelect - with the
|
|
1737
|
+
* link as its src. Scenes' own handlers play `video.src` (TheStatic.tv HQ's, the templates'), so handing them the
|
|
1738
|
+
* entry before the answer would play an empty src, and on a refusal play what should not play: a refusal hands
|
|
1739
|
+
* nobody anything and shows LOCKED: TheStatic.tv citizens. Each fresh link before the old one expires goes the same
|
|
1740
|
+
* way (the re-ask); a re-ask refused stops the video. A blocked visitor asks nothing.
|
|
1741
|
+
* @internal
|
|
1742
|
+
*/
|
|
1743
|
+
_selectLockedGuideEntry(video: GuideVideo): void;
|
|
1744
|
+
/**
|
|
1745
|
+
* A locked channel's play from the Admin Panel - a queued video command carrying `{ channel, locked: true }`, the
|
|
1746
|
+
* owner's Play on Screen, a locked slot (2026-11-20): the same ask and re-ask as a guide pick, the panel's own hands.
|
|
1747
|
+
* @internal
|
|
1748
|
+
*/
|
|
1749
|
+
_playLockedChannel(channel: unknown, handlers: LockedPlayHandlers): void;
|
|
1659
1750
|
/**
|
|
1660
1751
|
* Play video with stream verification for live content
|
|
1661
1752
|
* Works with both videoScreen (SDK-managed) and onVideoPlay (user-managed) modes.
|
package/dist/index.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ interface Channel {
|
|
|
161
161
|
id: string;
|
|
162
162
|
slug: string;
|
|
163
163
|
name: string;
|
|
164
|
+
/** The stream's url - absent for a locked channel (see `locked`) */
|
|
164
165
|
streamUrl: string;
|
|
165
166
|
isLive: boolean;
|
|
166
167
|
currentViewers: number;
|
|
@@ -173,6 +174,12 @@ interface Channel {
|
|
|
173
174
|
* that plays it without the guide UI asks the viewer yes or no first.
|
|
174
175
|
*/
|
|
175
176
|
isNsfw?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* True for a locked channel (thestatic.tv's stream lock, 2026-11-20): it carries its slug and no streamUrl, and
|
|
179
|
+
* thestatic.tv hands its link only to a visitor it admits (the channel's owner, a platform admin, a TheStatic.tv
|
|
180
|
+
* citizen). The Guide UI asks for that link; this module plays nothing.
|
|
181
|
+
*/
|
|
182
|
+
locked?: boolean;
|
|
176
183
|
}
|
|
177
184
|
/**
|
|
178
185
|
* VOD (Video on Demand) information
|
|
@@ -284,6 +291,15 @@ interface GuideVideo {
|
|
|
284
291
|
* stays in the lineup; the guide UI asks the viewer yes or no before it calls onVideoSelect.
|
|
285
292
|
*/
|
|
286
293
|
isNsfw?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* True for a locked channel's entry (thestatic.tv's stream lock, 2026-11-20): its `src` is empty and `channel` names
|
|
296
|
+
* it. A pick asks thestatic.tv for the link, signed as the visitor, and plays it only when the visitor is admitted -
|
|
297
|
+
* the scene's `onVideoPlay` and `guideUI.onVideoSelect` then get the entry with the link as its `src`; a refusal
|
|
298
|
+
* hands them nothing.
|
|
299
|
+
*/
|
|
300
|
+
locked?: boolean;
|
|
301
|
+
/** A locked entry's channel slug - what the SDK asks thestatic.tv's door for (2026-11-20) */
|
|
302
|
+
channel?: string;
|
|
287
303
|
}
|
|
288
304
|
/**
|
|
289
305
|
* Featured playlist for the guide UI
|
|
@@ -299,7 +315,9 @@ interface GuideUIConfig {
|
|
|
299
315
|
/**
|
|
300
316
|
* Callback when user selects a video
|
|
301
317
|
* Developer should handle playback. An 18+ entry (isNsfw) arrives only after the viewer answers
|
|
302
|
-
* the guide's MATURE CONTENT question yes (2.8.0); a no never calls it.
|
|
318
|
+
* the guide's MATURE CONTENT question yes (2.8.0); a no never calls it. Through the client, a locked
|
|
319
|
+
* channel's entry (2026-11-20) arrives only once thestatic.tv hands this visitor its link, with that
|
|
320
|
+
* link as its src (and again with each fresh link before it expires); a refused visitor's never does.
|
|
303
321
|
*/
|
|
304
322
|
onVideoSelect?: (video: GuideVideo) => void;
|
|
305
323
|
/**
|
|
@@ -353,7 +371,15 @@ interface StreamData {
|
|
|
353
371
|
channelId: string | null;
|
|
354
372
|
channelName?: string;
|
|
355
373
|
isLive: boolean;
|
|
374
|
+
/** The stream's playback url - null or absent for a locked channel (see `locked`) */
|
|
356
375
|
hlsUrl: string | null;
|
|
376
|
+
/**
|
|
377
|
+
* True when the scene's channel is locked (thestatic.tv's stream lock, 2026-11-20): the answer carries its `slug`
|
|
378
|
+
* and no hlsUrl, and the panel's Play on Screen queues `{ channel, locked: true }`, never a url
|
|
379
|
+
*/
|
|
380
|
+
locked?: boolean;
|
|
381
|
+
/** The channel's slug, beside `locked` */
|
|
382
|
+
slug?: string;
|
|
357
383
|
rtmpUrl?: string | null;
|
|
358
384
|
streamKey?: string | null;
|
|
359
385
|
currentViewers: number;
|
|
@@ -845,6 +871,16 @@ declare class FramesModule {
|
|
|
845
871
|
private postClick;
|
|
846
872
|
}
|
|
847
873
|
|
|
874
|
+
/** One locked play's hands: where its link goes, and (optional) what stops it and who else hears a refusal */
|
|
875
|
+
interface LockedPlayHandlers {
|
|
876
|
+
/** Plays the link - the first answer's, then each re-ask's new one */
|
|
877
|
+
deliver: (url: string) => void;
|
|
878
|
+
/** A re-ask was refused: the visitor is no longer admitted, so what plays stops */
|
|
879
|
+
stop?: () => void;
|
|
880
|
+
/** The play got no link - besides the notice (the Admin Panel's video line shows it) */
|
|
881
|
+
failed?: (line: string) => void;
|
|
882
|
+
}
|
|
883
|
+
|
|
848
884
|
/**
|
|
849
885
|
* Guide UI Module - provides channel/video browser
|
|
850
886
|
*/
|
|
@@ -1136,6 +1172,11 @@ declare class ModerationModule {
|
|
|
1136
1172
|
* Default, the broadcast, the kicks - goes through one signed sender to the scene's command queue on thestatic.tv,
|
|
1137
1173
|
* which every visitor's copy polls; the presser's copy does the same at once and skips its own command when the poll
|
|
1138
1174
|
* returns it. Until then the Video and Broadcast buttons reached the presser's copy alone.
|
|
1175
|
+
*
|
|
1176
|
+
* Since thestatic.tv's stream lock (2026-11-20) a locked channel never travels as a url: a queued video command for one
|
|
1177
|
+
* carries `{ channel, locked: true }`, Play on Screen and PLAYBACK Play queue the same, and every copy - the presser's
|
|
1178
|
+
* included - asks for its own link, signed as its visitor (the client's stream link, modules/stream-link.ts), and
|
|
1179
|
+
* plays it only when thestatic.tv admits them.
|
|
1139
1180
|
*/
|
|
1140
1181
|
|
|
1141
1182
|
declare class AdminPanelUIModule {
|
|
@@ -1179,6 +1220,11 @@ declare class AdminPanelUIModule {
|
|
|
1179
1220
|
private broadcastStatus;
|
|
1180
1221
|
/** The url the screen last played - the scene's current one from the video state at load, or the last play here - which PLAYBACK Play sends */
|
|
1181
1222
|
private currentVideoUrl;
|
|
1223
|
+
/**
|
|
1224
|
+
* The locked channel the screen last played (2026-11-20), in place of a url: PLAYBACK Play queues it again as
|
|
1225
|
+
* `{ channel, locked: true }` - a locked channel's link is this visitor's own and never goes into the queue
|
|
1226
|
+
*/
|
|
1227
|
+
private currentLockedChannel;
|
|
1182
1228
|
private controls;
|
|
1183
1229
|
private currentOption;
|
|
1184
1230
|
private controlStatus;
|
|
@@ -1233,6 +1279,15 @@ declare class AdminPanelUIModule {
|
|
|
1233
1279
|
get isVisitorBlocked(): boolean;
|
|
1234
1280
|
/** A url the scene's queue or the slots would play - nothing while this visitor is blocked */
|
|
1235
1281
|
private playUrl;
|
|
1282
|
+
/**
|
|
1283
|
+
* A locked channel's play (thestatic.tv's stream lock, 2026-11-20): a queued video command carrying
|
|
1284
|
+
* `{ channel, locked: true }`, the owner's Play on Screen for a locked stream, a locked slot. This copy asks
|
|
1285
|
+
* thestatic.tv's door for the link, signed as this visitor (the client's stream link: one request in flight per
|
|
1286
|
+
* channel, the re-ask before it expires), and plays it through onVideoPlay only when admitted. A refusal plays
|
|
1287
|
+
* nothing; the notice and this tab's video line say LOCKED: TheStatic.tv citizens. A blocked visitor asks nothing.
|
|
1288
|
+
* The link itself is never kept for PLAYBACK Play or sent to the queue - the channel is.
|
|
1289
|
+
*/
|
|
1290
|
+
private playLocked;
|
|
1236
1291
|
/**
|
|
1237
1292
|
* Toggle the admin panel open/closed
|
|
1238
1293
|
*/
|
|
@@ -1296,7 +1351,9 @@ declare class AdminPanelUIModule {
|
|
|
1296
1351
|
* Every gated admin call is a DCL signed fetch (thestatic.tv STATIC-01, 2026-10-07): the
|
|
1297
1352
|
* explorer signs it with the player's identity, and the server checks the signature and that it
|
|
1298
1353
|
* came from the scene deployed at this scene's registered location. A wallet named in a query or
|
|
1299
|
-
* body proved nothing and is no longer sent. Returns a fetch-like shape for the call sites.
|
|
1354
|
+
* body proved nothing and is no longer sent. Returns a fetch-like shape for the call sites. The
|
|
1355
|
+
* request itself lives in utils/signed-request.ts since 2026-11-20 (it was here), so the locked
|
|
1356
|
+
* channel's door - which a Standard scene asks too, with no panel - goes through the same one.
|
|
1300
1357
|
*/
|
|
1301
1358
|
private signedRequest;
|
|
1302
1359
|
/**
|
|
@@ -1381,7 +1438,12 @@ declare class AdminPanelUIModule {
|
|
|
1381
1438
|
private myName;
|
|
1382
1439
|
/** PLAY NOW: the typed url plays here and is queued as videoSetUrl, which thestatic.tv keeps for later arrivals */
|
|
1383
1440
|
private playNow;
|
|
1384
|
-
/**
|
|
1441
|
+
/**
|
|
1442
|
+
* Play on Screen: the scene's own live stream, as PLAY NOW with its HLS url (what the scene's page sends for it). A
|
|
1443
|
+
* locked stream (2026-11-20: the /stream answer says locked, with its slug and no hlsUrl) plays here through the
|
|
1444
|
+
* link asked for signed as the owner, and queues `videoSetUrl { channel, locked: true }` - never a url, so every
|
|
1445
|
+
* visitor's copy asks for its own link and only the admitted play it.
|
|
1446
|
+
*/
|
|
1385
1447
|
private playStreamOnScreen;
|
|
1386
1448
|
/** Play 1-5: the slot plays here (its url from the video state) and is queued as videoPlaySlot; the server resolves its url for everyone */
|
|
1387
1449
|
private pressSlot;
|
|
@@ -1473,6 +1535,12 @@ declare class StaticTVClient {
|
|
|
1473
1535
|
* declared frames from construction; reads, uploads and clicks only once the session confirms Venue.
|
|
1474
1536
|
*/
|
|
1475
1537
|
readonly frames: FramesModule;
|
|
1538
|
+
/**
|
|
1539
|
+
* A locked channel's link, asked for signed as the visitor (thestatic.tv's stream lock, 2026-11-20): every play of a
|
|
1540
|
+
* locked channel - a guide pick, a queued video command, the panel's Play on Screen - goes through it, and so does
|
|
1541
|
+
* the re-ask before the link expires. Internal: scenes play a locked channel through the Guide UI and the panel.
|
|
1542
|
+
*/
|
|
1543
|
+
private readonly streamLink;
|
|
1476
1544
|
/** UI scale - fixed at 1.0. DCL's UI system auto-scales based on viewport. */
|
|
1477
1545
|
readonly uiScale: number;
|
|
1478
1546
|
/** Get the API base URL (for internal module use) */
|
|
@@ -1656,6 +1724,29 @@ declare class StaticTVClient {
|
|
|
1656
1724
|
* @internal
|
|
1657
1725
|
*/
|
|
1658
1726
|
_handleGuideVideoSelect(video: GuideVideo): void;
|
|
1727
|
+
/**
|
|
1728
|
+
* A guide entry with its url, onto the SDK's player and/or onVideoPlay, with the stream verification - an unlocked
|
|
1729
|
+
* pick's, and a locked one's once its link is in hand (2026-11-20; until then this was _handleGuideVideoSelect's body)
|
|
1730
|
+
* @internal
|
|
1731
|
+
*/
|
|
1732
|
+
private _playGuideEntry;
|
|
1733
|
+
/**
|
|
1734
|
+
* A locked channel's guide entry picked (thestatic.tv's stream lock, 2026-11-20). It carries no url: the SDK asks
|
|
1735
|
+
* thestatic.tv's door for the link, signed as this visitor, and only with a link in hand does the entry go on - to
|
|
1736
|
+
* the SDK's player and onVideoPlay as an unlocked pick does, and to the scene's own guideUI.onVideoSelect - with the
|
|
1737
|
+
* link as its src. Scenes' own handlers play `video.src` (TheStatic.tv HQ's, the templates'), so handing them the
|
|
1738
|
+
* entry before the answer would play an empty src, and on a refusal play what should not play: a refusal hands
|
|
1739
|
+
* nobody anything and shows LOCKED: TheStatic.tv citizens. Each fresh link before the old one expires goes the same
|
|
1740
|
+
* way (the re-ask); a re-ask refused stops the video. A blocked visitor asks nothing.
|
|
1741
|
+
* @internal
|
|
1742
|
+
*/
|
|
1743
|
+
_selectLockedGuideEntry(video: GuideVideo): void;
|
|
1744
|
+
/**
|
|
1745
|
+
* A locked channel's play from the Admin Panel - a queued video command carrying `{ channel, locked: true }`, the
|
|
1746
|
+
* owner's Play on Screen, a locked slot (2026-11-20): the same ask and re-ask as a guide pick, the panel's own hands.
|
|
1747
|
+
* @internal
|
|
1748
|
+
*/
|
|
1749
|
+
_playLockedChannel(channel: unknown, handlers: LockedPlayHandlers): void;
|
|
1659
1750
|
/**
|
|
1660
1751
|
* Play video with stream verification for live content
|
|
1661
1752
|
* Works with both videoScreen (SDK-managed) and onVideoPlay (user-managed) modes.
|