@thestatic-tv/dcl-sdk 2.10.0 → 2.11.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 +31 -3
- package/dist/index.d.mts +96 -4
- package/dist/index.d.ts +96 -4
- package/dist/index.js +416 -36
- package/dist/index.mjs +416 -36
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -134,7 +134,9 @@ who is already inside, and KICK ALL works. Each visitor's copy of the scene read
|
|
|
134
134
|
at load, on entering the scene, once a minute while inside, and at once when a kick names its wallet.
|
|
135
135
|
|
|
136
136
|
- **Banned:** the SDK raises a wall over each of your parcels (any shape of scene, an L included), moves the visitor
|
|
137
|
-
to
|
|
137
|
+
to your scene's front entry (the 1 m strip outside the walls beside your default spawn point in `scene.json`, at
|
|
138
|
+
its height; with no spawn point, the edge nearest them, on the ground) from anywhere else on your parcels, at any
|
|
139
|
+
height, and shows them only a notice. No guide, chat, admin panel or SDK
|
|
138
140
|
video while it lasts. The walls start 1 m in from your scene's outer edges, so someone walking in from outside sees
|
|
139
141
|
the notice before they reach a wall.
|
|
140
142
|
- **KICK ALL:** every visitor who cannot moderate the scene gets the same for two minutes. Moderators stay.
|
|
@@ -209,8 +211,8 @@ linked to a TheStatic.tv account) and to the scene's own admins. Switch it from
|
|
|
209
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;
|
|
210
212
|
every visitor's copy reads its own standing within a few seconds of the switch.
|
|
211
213
|
|
|
212
|
-
- **Kept out:** a visitor who is not admitted gets what a ban gives (the walls over your parcels, the move
|
|
213
|
-
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
|
|
214
216
|
page. Once they link their wallet they get in at their next read, within a minute.
|
|
215
217
|
- **Precedence:** banned, then kicked, then private. `staticTV.visitorStanding` reads `'private'` and `onBlockedChange`
|
|
216
218
|
is called with `(true, 'private')`, so stop your own media there as for a ban.
|
|
@@ -229,6 +231,32 @@ async function onDoorClicked() {
|
|
|
229
231
|
answer when it is under 5 seconds old, and never waits more than 10 seconds (then it answers the last one). Both answer
|
|
230
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.
|
|
231
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
|
+
|
|
232
260
|
## Frames (2.10.0, Venue tier)
|
|
233
261
|
|
|
234
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
|
*/
|
|
@@ -1065,6 +1101,7 @@ declare class ModerationModule {
|
|
|
1065
1101
|
private readWaiters;
|
|
1066
1102
|
private rects;
|
|
1067
1103
|
private boxes;
|
|
1104
|
+
private spawn;
|
|
1068
1105
|
private wallEntities;
|
|
1069
1106
|
private lastBlocked;
|
|
1070
1107
|
private lastStanding;
|
|
@@ -1117,7 +1154,7 @@ declare class ModerationModule {
|
|
|
1117
1154
|
private lowerWalls;
|
|
1118
1155
|
/** The walls this copy has up (one per parcel while blocked) */
|
|
1119
1156
|
get wallCount(): number;
|
|
1120
|
-
/** Every CHECK_EVERY_S: a lapsed kick, the re-reads, and a blocked visitor
|
|
1157
|
+
/** Every CHECK_EVERY_S: a lapsed kick, the re-reads, and a blocked visitor out of place moved to the front entry */
|
|
1121
1158
|
system: (dt: number) => void;
|
|
1122
1159
|
}
|
|
1123
1160
|
|
|
@@ -1135,6 +1172,11 @@ declare class ModerationModule {
|
|
|
1135
1172
|
* Default, the broadcast, the kicks - goes through one signed sender to the scene's command queue on thestatic.tv,
|
|
1136
1173
|
* which every visitor's copy polls; the presser's copy does the same at once and skips its own command when the poll
|
|
1137
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.
|
|
1138
1180
|
*/
|
|
1139
1181
|
|
|
1140
1182
|
declare class AdminPanelUIModule {
|
|
@@ -1178,6 +1220,11 @@ declare class AdminPanelUIModule {
|
|
|
1178
1220
|
private broadcastStatus;
|
|
1179
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 */
|
|
1180
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;
|
|
1181
1228
|
private controls;
|
|
1182
1229
|
private currentOption;
|
|
1183
1230
|
private controlStatus;
|
|
@@ -1232,6 +1279,15 @@ declare class AdminPanelUIModule {
|
|
|
1232
1279
|
get isVisitorBlocked(): boolean;
|
|
1233
1280
|
/** A url the scene's queue or the slots would play - nothing while this visitor is blocked */
|
|
1234
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;
|
|
1235
1291
|
/**
|
|
1236
1292
|
* Toggle the admin panel open/closed
|
|
1237
1293
|
*/
|
|
@@ -1295,7 +1351,9 @@ declare class AdminPanelUIModule {
|
|
|
1295
1351
|
* Every gated admin call is a DCL signed fetch (thestatic.tv STATIC-01, 2026-10-07): the
|
|
1296
1352
|
* explorer signs it with the player's identity, and the server checks the signature and that it
|
|
1297
1353
|
* came from the scene deployed at this scene's registered location. A wallet named in a query or
|
|
1298
|
-
* 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.
|
|
1299
1357
|
*/
|
|
1300
1358
|
private signedRequest;
|
|
1301
1359
|
/**
|
|
@@ -1380,7 +1438,12 @@ declare class AdminPanelUIModule {
|
|
|
1380
1438
|
private myName;
|
|
1381
1439
|
/** PLAY NOW: the typed url plays here and is queued as videoSetUrl, which thestatic.tv keeps for later arrivals */
|
|
1382
1440
|
private playNow;
|
|
1383
|
-
/**
|
|
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
|
+
*/
|
|
1384
1447
|
private playStreamOnScreen;
|
|
1385
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 */
|
|
1386
1449
|
private pressSlot;
|
|
@@ -1472,6 +1535,12 @@ declare class StaticTVClient {
|
|
|
1472
1535
|
* declared frames from construction; reads, uploads and clicks only once the session confirms Venue.
|
|
1473
1536
|
*/
|
|
1474
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;
|
|
1475
1544
|
/** UI scale - fixed at 1.0. DCL's UI system auto-scales based on viewport. */
|
|
1476
1545
|
readonly uiScale: number;
|
|
1477
1546
|
/** Get the API base URL (for internal module use) */
|
|
@@ -1655,6 +1724,29 @@ declare class StaticTVClient {
|
|
|
1655
1724
|
* @internal
|
|
1656
1725
|
*/
|
|
1657
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;
|
|
1658
1750
|
/**
|
|
1659
1751
|
* Play video with stream verification for live content
|
|
1660
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
|
*/
|
|
@@ -1065,6 +1101,7 @@ declare class ModerationModule {
|
|
|
1065
1101
|
private readWaiters;
|
|
1066
1102
|
private rects;
|
|
1067
1103
|
private boxes;
|
|
1104
|
+
private spawn;
|
|
1068
1105
|
private wallEntities;
|
|
1069
1106
|
private lastBlocked;
|
|
1070
1107
|
private lastStanding;
|
|
@@ -1117,7 +1154,7 @@ declare class ModerationModule {
|
|
|
1117
1154
|
private lowerWalls;
|
|
1118
1155
|
/** The walls this copy has up (one per parcel while blocked) */
|
|
1119
1156
|
get wallCount(): number;
|
|
1120
|
-
/** Every CHECK_EVERY_S: a lapsed kick, the re-reads, and a blocked visitor
|
|
1157
|
+
/** Every CHECK_EVERY_S: a lapsed kick, the re-reads, and a blocked visitor out of place moved to the front entry */
|
|
1121
1158
|
system: (dt: number) => void;
|
|
1122
1159
|
}
|
|
1123
1160
|
|
|
@@ -1135,6 +1172,11 @@ declare class ModerationModule {
|
|
|
1135
1172
|
* Default, the broadcast, the kicks - goes through one signed sender to the scene's command queue on thestatic.tv,
|
|
1136
1173
|
* which every visitor's copy polls; the presser's copy does the same at once and skips its own command when the poll
|
|
1137
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.
|
|
1138
1180
|
*/
|
|
1139
1181
|
|
|
1140
1182
|
declare class AdminPanelUIModule {
|
|
@@ -1178,6 +1220,11 @@ declare class AdminPanelUIModule {
|
|
|
1178
1220
|
private broadcastStatus;
|
|
1179
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 */
|
|
1180
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;
|
|
1181
1228
|
private controls;
|
|
1182
1229
|
private currentOption;
|
|
1183
1230
|
private controlStatus;
|
|
@@ -1232,6 +1279,15 @@ declare class AdminPanelUIModule {
|
|
|
1232
1279
|
get isVisitorBlocked(): boolean;
|
|
1233
1280
|
/** A url the scene's queue or the slots would play - nothing while this visitor is blocked */
|
|
1234
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;
|
|
1235
1291
|
/**
|
|
1236
1292
|
* Toggle the admin panel open/closed
|
|
1237
1293
|
*/
|
|
@@ -1295,7 +1351,9 @@ declare class AdminPanelUIModule {
|
|
|
1295
1351
|
* Every gated admin call is a DCL signed fetch (thestatic.tv STATIC-01, 2026-10-07): the
|
|
1296
1352
|
* explorer signs it with the player's identity, and the server checks the signature and that it
|
|
1297
1353
|
* came from the scene deployed at this scene's registered location. A wallet named in a query or
|
|
1298
|
-
* 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.
|
|
1299
1357
|
*/
|
|
1300
1358
|
private signedRequest;
|
|
1301
1359
|
/**
|
|
@@ -1380,7 +1438,12 @@ declare class AdminPanelUIModule {
|
|
|
1380
1438
|
private myName;
|
|
1381
1439
|
/** PLAY NOW: the typed url plays here and is queued as videoSetUrl, which thestatic.tv keeps for later arrivals */
|
|
1382
1440
|
private playNow;
|
|
1383
|
-
/**
|
|
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
|
+
*/
|
|
1384
1447
|
private playStreamOnScreen;
|
|
1385
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 */
|
|
1386
1449
|
private pressSlot;
|
|
@@ -1472,6 +1535,12 @@ declare class StaticTVClient {
|
|
|
1472
1535
|
* declared frames from construction; reads, uploads and clicks only once the session confirms Venue.
|
|
1473
1536
|
*/
|
|
1474
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;
|
|
1475
1544
|
/** UI scale - fixed at 1.0. DCL's UI system auto-scales based on viewport. */
|
|
1476
1545
|
readonly uiScale: number;
|
|
1477
1546
|
/** Get the API base URL (for internal module use) */
|
|
@@ -1655,6 +1724,29 @@ declare class StaticTVClient {
|
|
|
1655
1724
|
* @internal
|
|
1656
1725
|
*/
|
|
1657
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;
|
|
1658
1750
|
/**
|
|
1659
1751
|
* Play video with stream verification for live content
|
|
1660
1752
|
* Works with both videoScreen (SDK-managed) and onVideoPlay (user-managed) modes.
|