OpenVibe.Live/Docs
Source on GitHub

Broadcasting Guide#

OpenVibe.Live supports four live broadcast methods, each suited to different use cases.

For a chat-free channel player that can float across OpenVibe sites, see Channel embeds or visit /docs/embed.

Broadcast Methods#

WebRTC (Browser)#

RTMP (OBS/Streamlabs)#

WHIP (OBS, FFmpeg, GStreamer — or any web page)#

OpenRestream (OBS, restreaming everywhere)#

JSMPEG (FFmpeg)#

Broadcast Page Features#

Live Controls#

When streaming via WebRTC browser, you have access to:

The live studio on a phone#

On a phone (narrower than 760 px, or a phone turned sideways), a browser stream opens the live studio (public/js/broadcast-studio.js): the camera fills the screen, the stream chat sits over the bottom of the picture, and the controls sit on top. The top bar has LIVE, time live, people watching, restream status and connection, with End (it asks first). The right-hand rail has Flip, Mute, Camera, Light (the torch, when the camera has one), Chat, Clip (the last 30 seconds) and More, a sheet with share, watch as viewer, choose camera, screen, media requests, a one-minute clip, chat read aloud, the restream controls, stream health, all settings and Full page (the classic page, with a button back). The studio drives the same functions as the page and reads its counters.

Picture-in-picture#

A slot can show up to three other streams over its own:

Each stays a stream in its own right, with its own VOD, clips, transcript and restreams. A PIP shows while its stream is live, and appears within 30 seconds when that stream goes live after the page opened.

Setting it up: open the slot's Settings → Picture-in-picture.

What viewers can do: move, resize, mute or hide each PIP for themselves, and the page remembers it per stream.

Limits: an 18+ stream shows only over another 18+ stream, and a banned streamer's slot shows nowhere.

Your camera during a screen share goes out as a stream of its own by default (screen share settings, How the camera goes out):

What viewers can do with a PIP (phone and desktop alike):

Restreams to Twitch, YouTube and the like get the screen only. Choose Drawn into the screen share to paint the camera into the picture as before, so restreams show it too.

API: GET/PUT /api/streams/managed/:id/pips ({ pips: [{ source_msid, x, y, w, muted }] }, fractions of the player), GET /api/streams/pip-sources?username= (a streamer's slots), and GET /api/streams/:id/pips (a live stream's PIPs now). The stream objects carry pip_overlays.

Viewer counts across platforms#

A live stream's viewers are counted wherever it goes out (server/streaming/viewer-places.js): OpenVibe itself (the larger of Chat's count and the player sockets'), RobotStreamer, and each restream destination of the stream's slot (Twitch through Helix, Kick through its API, YouTube with a youtube_api_key site setting; a platform that gives no number is listed as live without one). GET /api/streams/channel/:username gives each live stream these viewer_places. The channel player's count and the broadcaster's (the go-live page, the OBS/JSMPEG/WHIP panels and the phone studio) are their sum, and a tap on the player's count or the studio's lists them (public/js/viewer-places.js). The broadcaster's page reads the same answer every 20 seconds, so both sides see one number.

Stream Chat#

The broadcast page includes an embedded chat sidebar with:

Disconnect Handling#

RTMP Preview#

When using RTMP, the page shows your stream's live thumbnail (/api/thumbnails/stream-<id>-live.jpg), checked every 10 seconds. Live thumbnails, the ones the live cards show too, are refreshed about every 2 minutes: the server grabs a frame from RTMP, JSMPEG and WebRTC/WHIP streams, and a browser broadcaster with a visible tab posts its own.

Multi-Stream#

You can run multiple simultaneous streams (e.g., different cameras). Each gets its own tab in the broadcast page with independent controls and viewer counts.

Stream Settings#

Configurable per-stream settings include:

What the browser encoder is asked for#

A browser broadcast reaches the SFU through mediasoup-client (public/js/broadcast.js, _handleSfuProduceRequest; the options come from sfuVideoProduceOptions in broadcast-state.js):

This page is rendered from docs/broadcasting.md in the OpenVibe.Live repository. Found a mistake? Edit it there.