Event broadcast operator console
The authorized /operate view subscribes to getEventMediaControlStatus. It
selects the program's activeSessionId; a newer terminal session never replaces
that session. An unresolved replacement subscription does not fall back to old
permissions or source rows. Read-only operations staff retain diagnostics access.
Community event administration
Super-admins can turn on Admin mode in Account or from a denied event editor or Broadcast link. Use the header control to exit. The same mode works across clubs and events. See session setup and permission checks.
Control and observation
The locked workspace adds person lookup and a pasted-link Quick switch, optional local previews, copyable destination URLs and a connection wizard. A single primary destination is plain text. The wizard supports VRCDN, Twitch and Custom ingest, derives VRCDN PC/Quest URLs, and permits skipping its bounded test. Saved but untested connections remain labeled Not tested. Credential setup and self-hosting configuration must be ready before enabling the new setup route.
Desired source comes from committed intent. Pending source comes from the current operation, including its Preparing or Promoting phase. Observed output requires fresh encoded evidence: the source identity, revision, slot and output watermark, plus the existing live lease and 15-second observation limit. A failed preparation leaves committed intent and encoded output unchanged. Old revisions remain visible as distinct identities after replacement.
Take uses the existing command API. Cancel is offered only during preparation. Cut to slate has its own synchronous submission guard and does not wait behind an ordinary request or preparation. Stop has priority over source controls and retains its confirmation. Return to auto remains available in schedule gaps; the resulting automatic slate is valid. Start retains admission, output reservation, and terminal cleanup restrictions. Auto keeps the slate on air and prepares the opener up to ten minutes before its slot. Go appears when the worker confirms fresh audio and video from a live feed or has preroll ready for an opening clip. Pressing Go takes the opener early and keeps Auto active. Without a take, the opener goes on air at its scheduled time when ready. Use Start slate 20 minutes early to schedule the selected output. The broadcast page shows the scheduled time. Use Cancel start to clear the pending start before editing the destination. If the pre-show time has passed, use Start. The worker’s 12-hour runtime limit includes the time spent on the slate.
Go captures the session and source revision. Other live controls use a captured-target confirmation. Next preserves automatic/manual mode, and its persisted lineup cursor survives worker recovery and temporary custom takeovers. Hold validates the captured current source. Resume re-prepares the last actually observed source. No UI path bypasses the measured allocation map.
Pre-show, manual hold, and input fallback use the event poster with silent audio. The worker loads VRDex-hosted event artwork or a direct Discord attachment when the broadcast starts. If the poster is unavailable, the neutral slate stays on air.
A Stop arriving during a progress report supersedes that report without accepting new output evidence. Lease and owner checks still apply, and the worker can claim and acknowledge Stop on its next tick instead of reporting an authority failure.
A requested Stop closes publication immediately, then the worker claims and acknowledges that Stop before its bounded control tick completes. A stopped configuration alone does not prove a failed Stop. Event cancellation or authority loss still fences publication, and task cleanup confirmation remains separate from the command acknowledgement.
Custom sources use eventMediaSources.create/replace/remove. The authorized server
projection supplies editable; profile projections and lineup sources cannot be
edited as custom inputs. Replacing creates a new source identity and revision; it
does not rewrite an on-air record. The backend accepts canonical VRCDN, Twitch and
qualified HTTPS direct-media inputs. Provider liveness does not establish decoder readiness.
Status windows and diagnostics
The input list shows all inputs. Automatic checks cover the current, next, and
previewed feeds. When the next DJ changes, the console checks the new
target immediately. The Check feed button checks one input. The private
/operate/status route forwards the viewer token and checks the exact event path
before resolving those IDs against the authorized event. Unknown, foreign,
duplicate, oversized, and arbitrary URL parameters cannot initiate probes.
Host and operator routes import the same process-shared status reader. It permits four concurrent probes, caches for 30 seconds and returns partial results within ten seconds without queueing unstarted work. Client refresh waits 30 seconds after completion, aborts on unmount, and has a 12-second fetch bound. Missing or older than 60-second provider observations show a grey dot with the Not checked tooltip. Direct video has no provider liveness probe and uses the Direct video tooltip. Direct-video inputs do not occupy the four provider-probe slots. Fresh encoded output identifies the matching source ID and revision as On air in both the input row and Quick switch; a fresh offline/unavailable provider result still takes precedence so an input failure is not hidden by continued encoding. A local preview alone never establishes On air. Quick switch retains observation timestamps so provider results expire on the same 60-second boundary. Links and copy actions remain available during probe failures. The host reader can prioritize a preview only when its canonical key belongs to that authorized/public roster.
Starting and Stopping remain visible before a media observation arrives, bounded
by the worker lease. Before lease acquisition, startup uses its persisted ready
deadline and Stop uses its request time plus the existing 30-second grace period.
Expired lifecycle evidence becomes Unknown. Fresh per-output health takes priority
over the lifecycle label. Only the active primary destination can fall back to
the session lifecycle, using the session's own output ID; a missing output ID,
unobserved simulcast and revoked destinations stay Unknown. Ended sessions
display Off air and no observed mode while cleanup still locks Start. The worker
synchronously fences publication with outputs.stopNow() before acknowledging
Stop as ended; process-stop confirmation and resource cleanup follow separately.
Lease loss records error, which remains Unknown until output cleanup unlocks
configuration. Missing active sessions
and stale live observations never inherit another session's output.
The failed-session placeholder says Error while its unconfirmed output stays
Unknown; a never-started broadcast shows Off air.
Diagnostics is collapsed and uses the existing control subscription. Server time plus browser monotonic elapsed time ages CPU and memory to Unknown at 30 seconds; heartbeat updates do not refresh sample time. Allocation, provider, region, active formats and dated compute-only rate remain separate from utilization. No resource poll or operator CPU/memory setting was added.
Settings, editor and local preview
Resolution and frame rate expose all six presets. Audio choices are 160/320 kbps; new programs default to 320 and legacy programs remain 160. Twitch is always 160-kbps stereo/48-kHz AAC. Active session settings remain immutable while saved settings apply on the next start.
In Broadcast controls, Assign lineup input sets a timed slot to a saved event input or a pasted playback URL. Operators can fill an unassigned slot during a broadcast. The worker uses it as soon as it refreshes the schedule in Automatic mode. If an operator took the link manually, Return to auto selects the assigned input for the current slot. An existing assignment can be cleared once it is off air and no switch to it is pending. Stop the broadcast to replace an existing input. The assignment takes precedence over the performer's profile input and works for unlinked performers. The same feed can be assigned to multiple slots. Choose Automatic to clear an assignment and restore the profile fallback. Clear or reassign all slots using a saved input before replacing or removing it.
Replacing the performer clears the assignment. Rescheduling the same performer preserves it.
The editor's Broadcast input field is separate from performer-sequence Stream.
It uses getPersonBroadcastInputChoices({personSlug}), preserves unavailable
explicit inputs, and emits null only for an explicit reset. Untimed conversion,
reorder, pending saves, dirty tracking and reload retain authored selection.
Changing a performer clears the prior input without changing legacy playback
semantics. Available choices are presentation metadata and never enter save args.
Preview owns a local adapter and foreground identity. It never calls the persistent playback owner's Play or replaces its request. It starts muted and exposes the player's own controls. Native unmute acquires foreground audio synchronously before becoming audible, and focus loss disposes the local adapter. Close and navigation do not resume the program automatically. Monitoring and provider status belong to the current local handle. Label changes update metadata without replacing playback. Source or geometry replacements reset keyboard/pointer interactivity synchronously before creating a muted adapter; they require their own foreground acquisition. Notifications from stopped or replaced adapters cannot change the current handle's state, and current successful playback clears an earlier Unavailable status.
Twitch preview uses the official SDK, passes initial muted state into construction, and fences late SDK/READY callbacks after disposal. Keyboard and pointer controls are available through the player; audibility still requires foreground ownership. The actual visible mount must be at least 400 by 300 pixels, including at a 400-pixel viewport with card padding. Narrow or nonvisible placements expose an external link; they do not create a clipped embed.
Verification boundary
Selected browser CI includes a separate candidate broadcast acceptance job. It has a 45-minute job bound and a 24-minute acceptance-step bound, leaving room for dependency installation, the image build and evidence upload. It starts a fresh local Convex deployment and a production build of the candidate Next app, authenticates through the retained Clerk development tenant, and drives the real operator route. A packaged worker build uses the production control loop, renderer, input manager, and output sender against a local native RTMP receiver. There are no intercepted application requests or synthetic control replies in this job.
The normal case switches a public video through Quick switch, pauses a real worker observation, requests Stop through its confirmation, then releases the observation. Acceptance requires a superseded report, a succeeded Stop command, an ended session, physical worker/receiver exit, and independently decoded video/audio from the capture. The confirmation is prepared before pausing; the fixture waits for Stop to persist before releasing the observation. The production three-second request deadline remains enforced, and recorded pause time must stay within it. Receiver DNS must resolve exclusively to loopback before publication. The published test community option is restricted to local deployments; normal fixtures remain private. Cancelled-event and revoked-output cases require the report to remain fenced and publication to stop. All cases use disposable local data and delete their Clerk test account. The CI report fails on a missing job, artifact or executed test.
This environment uses a development identity tenant, a local receiver instead of VRCDN, and Docker with 4 CPU/4 GiB instead of the qualified ECS 8 CPU/16 GiB. Its enabled gate and process lifecycle are local. Backend admission mutations are real, but their task references describe fixture processes. This does not exercise AWS SSM, ECS process APIs, cloud IAM or live provider credentials. It proves the candidate browser/backend/native control path; retained cloud/provider/capacity evidence and a separate deployed smoke remain distinct. It creates no new AWS resources.
Pure view, route, editor persistence, foreground and fake SDK tests exercise source contracts without services. Guarded browser fixtures exercise production components with synthetic control receipts and intercepted playback; they are not authenticated backend or provider rehearsals. Desktop/mobile browser execution, screenshots and VLM review remain required before UI completion. A new image/source mix needs its own allocation qualification before live rollout; fixture Start does not establish capacity.