WebRTC Stage + Synced HLS Audience
You're the host on stage. Guests and viewers join from your links.
Allow your camera: you are live in real time, under a second of delay.
Premium React reference · hybrid delivery lab
WebRTC Stage + Synced HLS Audience
Keep the host and two guests conversational while a passive cohort follows one versioned program clock.Live stage
You, two guests and a watching audience
Everyone on stage talks in real time. A separate stream carries the same picture to a large watch-only audience.
- Guests join a private room that closes when you leave.
- Video and audio stay inside this panel.
- No sign-in, no saved data, nothing stored after you leave.
Plan a bigger eventAn illustration of stage seats, the audience timeline and delivery. It changes no media.
Conversational path
Active WebRTC stage
Scaled delivery path
Passive synchronized audience
Ready to try. Nothing is running yet — no room, no camera, no stream.
The stage above: the room, cameras, microphones, guest links, the audience stream and its watch link. They expire with the room.
IllustrationThis planner: seats, the audience timeline and the delivery comparison explain capacity and commands without touching media.
Add a watch-only stream for a big audience
The guest room above is the default. A Studio/profile or BYO integration may inject a separately authorized member-HLS adapter; it never changes the room boundary or grants a participant end authority.
Operators: run a saved 15-minute session
The stage above needs no account and keeps nothing. A saved session is the signed-in variant: it is recorded on our servers, expires in 15 minutes, and can be scrubbed on demand.
For developers: how the stream is put together
The premium surface, deterministic playback lab, roles, evidence, and teardown all resolve from the same frozen scenario.
Hybrid real-time and egress pattern - guide-only
Technical workbench · WebRTC Stage + Synced HLS Audience
A host and up to two active guests talk over WebRTC while passive viewers consume clock-aligned HLS renditions and follow a server-authoritative live-edge or DVR playhead.
- 1Start with
one host, at most two active guests, and a larger passive audience with an explicit latency and DVR policy
- 2Use MediaSFU primitives
room lifecycle, role-scoped publishing, active participant presence, WebRTC consume state, and observed media events
- 3Get
a hybrid stage where active speakers remain conversational and passive viewers receive synchronized egress playback
- 4Refine with
HLS or CMAF egress, program-time alignment, authoritative cohort commands, drift telemetry, AB comparison, and cleanup adapters
Build translation
Start with X → MediaSFU primitives Y → outcome Z
room-create-v1 + room-join-v1 + participant roles→OutcomeExactly three permitted publishers can be represented on the live stageRefine: Bind server-owned admission, active-capacity, and promotion policy.
WebRTC publish and consume state→OutcomeThe active trio can consume one another with conversational latencyRefine: Bind network-quality policy and prove media in isolated browsers.
observed active media state→OutcomeEach active source has an explicit egress intent without pretending the browser creates HLSRefine: Bind aligned HLS or CMAF renditions, manifests, storage, and delivery.
application state beside room events→OutcomeA versioned cohort playhead can coordinate passive viewers without seeking the live speakersRefine: Bind a server-authoritative clock, command sequence, drift budget, and DVR window.
role and consume intent→OutcomeA bounded passive cohort may be assigned receive-only WebRTC for comparisonRefine: Bind deterministic cohort assignment, capacity limits, QoE metrics, and rollback.
Role lens
Who owns each decision?
Topology
The room and its deliberate gaps
Control inventory
Controls are states, not simulated actions
Server policy must admit at most two active guests and demote or reject excess requests.
Owner: role authorityProjects publish and consume readiness for the active trio; the guide requests no media.
Owner: installed SDKSelects whether the passive cohort follows live edge or may use a bounded rewind window.
Owner: egress and playback policyCreates a versioned command for passive viewers only; active speakers stay live.
Owner: clock authorityAssigns a bounded experiment cohort before join and never flips a viewer silently.
Owner: experiment authorityInteractive protocol proof
Active WebRTC stage + synchronized passive audience
Issue a local command to inspect monotonic versioning, drift correction, and the active-stage invariant.
This is a protocol model, not simulated playback. A real run must inject admission, HLS/CMAF egress, shared-clock, QoE, and teardown adapters and replace every local projection with observed evidence.
Implementation workbench
Host application: Declare stage, audience, and timeline policy
Do: Choose active capacity, passive transport, latency target, live-edge or DVR semantics, rights, and retention before enabling controls.
Then: The guide exposes no room, manifest, media locator, assignment, or durable viewer value.
Evidence: Reviewed hybrid-session policy
Recovery: Stop before admission when any authority or rights boundary is unavailable.
How this room worksYour side, what is on screen and what you can change
You play the host on stage
You talk live, steer the watching audience and choose who gets a seat.
Other sideGuests and viewers. Two guests talk with you live. Everyone else watches a few seconds behind.
A few people talk live on stage over WebRTC while a large audience watches the same moment over HLS — the setup behind town halls, launches and live shows.
- Active WebRTC stage
- Passive HLS cohort
- Clock and transport experiments
On a phone the room stacks top to bottom, in this order.