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)#
- Best for: Quick streams directly from your browser
- Latency: Sub-second
- Setup: Click "Go Live", grant camera/mic permissions
- Features: Screen share, camera PiP overlay, live stats, camera switching
RTMP (OBS/Streamlabs)#
- Best for: Professional streaming with OBS, multi-scene setups
- Latency: 2-5 seconds
- Setup: Copy Server URL and Stream Key into OBS
- Features: Full OBS feature set, live thumbnail preview on broadcast page
- If viewers hear an echo: look at OBS's audio monitoring (Edit → Advanced Audio Properties, Audio Monitoring).
A microphone set to Monitor and Output plays itself back out of the speakers, the microphone picks that up again,
and the stream gets a loud echo (Maticus's "920 mic", 2026-10-26). Set microphones to Monitor Off, or monitor
on headphones only. A browser source that plays chat voice or channel sounds can stay on Monitor and Output if you
want to hear it, but only when no microphone can hear your speakers.
WHIP (OBS, FFmpeg, GStreamer — or any web page)#
- Best for: WebRTC-native encoders and custom publishers, including browser-only sites
- Latency: Sub-second
- Setup: Choose Streaming method: WHIP, copy the WHIP URL into OBS (Service: WHIP) or
ffmpeg -f whip - Features: VP8/H.264 + Opus, auto-creates the live session on first POST, open CORS so a static page can publish with
RTCPeerConnection+fetch()— see the WHIP Ingest API / Publishing from a browser and the hosted browser publisher
OpenRestream (OBS, restreaming everywhere)#
- Best for: Streaming to Twitch, YouTube, Kick and other servers at the same time as your OpenVibe Live channel
- Setup: Create a stream on openre.stream, copy its RTMP server and key into OBS, and add
your other destinations there - On Live by default: each stream made on OpenRestream gets its own slot on your channel, marked *managed on
OpenRestream*. Its sessions go live onopenvibe.live/@youwith chat, clips and VODs, through the OpenRestream mirror
(server/openre/mirror.js). Switch "Show it on my OpenVibe Live channel" off on OpenRestream and Live ignores that
stream; your other destinations keep going. - How: OpenRestream calls
POST /internal/openre/slots(capabilitylive.openre.slot.bind,
server/openre/bind.js) with a Network service token. Live creates a new slot withingest_authority = 'openre', or returns the one already bound to that stream. It never changes an existing slot.
A person needs a Live account first, which they get by signing in to openvibe.live once.
JSMPEG (FFmpeg)#
- Best for: Headless/embedded streaming (Raspberry Pi, IP cameras, 3D printers)
- Latency: ~1 second
- Setup: Run FFmpeg command with the provided endpoint
- Features: Flexible input sources, low resource usage
Broadcast Page Features#
Live Controls#
When streaming via WebRTC browser, you have access to:
- Stop Stream — End the broadcast
- Mute / Camera off — Silence the microphone or black out the camera without ending the stream (the track is
disabled; the choice holds when the camera is switched or a track recovers) - Flip camera — Front ↔ back in one tap (shown when the device has more than one camera)
- Choose camera — Pick any camera from a list
- Share screen — Share screen/window/tab
- Camera in corner — Picture-in-picture camera over a shared screen
- Mic — Add or remove the microphone while sharing a screen
- Stream health — Show bitrate, FPS, resolution, codec overlay
- Test chat voice / Skip spoken message — Hear how chat is read aloud; stop the current message and clear the queue
- Hide preview — Hide your own preview (you stay live; saves CPU and battery)
- Watch as viewer — Open your channel the way viewers see it (real mediasoup consumer path)
- Clip — Create a clip from the live stream
- Media requests — Media request PiP player
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:
- your webcam on a slot of its own while the main slot is a screen share;
- a second angle;
- anyone's stream on OpenVibe.Live.
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.
- Add one of your slots, or type another streamer's @name and pick one of theirs.
- For each PIP, choose where it starts (a corner and a size) and whether it starts with sound.
- Changes save at once.
What viewers can do: move, resize, mute or hide each PIP for themselves, and the page remembers it per stream.
- A PIP that can't play shows "… is offline" and can still be hidden.
- A PIP's name opens that streamer's channel.
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):
- It goes live on one of your slots: the first of your idle slots already listed as a PIP here, else a new
"<title> camera" slot, added at the corner and size you chose. - It gets its own VOD.
- Viewers can move it or tuck it aside (below).
- It plays over the screen share's VOD where it was.
- It ends with the screen share, or when you turn the camera off.
What viewers can do with a PIP (phone and desktop alike):
- Drag it anywhere: dropped over the player it sits in the player, anywhere else it floats over the page and stays on
screen while they scroll. A flick carries it on; near an edge it snaps to it. - Throw it past a side (or press its »): it tucks into that side, a tab with its picture still going; a tap brings it back.
- Size it from its corner, with two fingers, or with a double tap (small and large); mute it; put it back where you put
it (↺). - Listen to it instead of the stream (the headphones: the stream is muted until they press it again), or pop it out of
the browser into the system's own picture-in-picture window, on top of everything (where the browser can). - While it connects, or when its picture stops, it shows the OpenVibe mark at work over its last frame and tries again
by itself. - Where they put it is kept per slot in their browser and, signed in, in their account, so it is there next time.
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:
- Full chat functionality (emotes, GIFs, TTS)
- Pop Out Chat button — opens chat in a separate window (lightweight WebSocket popup)
- User list and chat settings
- Mobile: floating action button to toggle chat overlay
Disconnect Handling#
- Visual disconnect alert banner when the connection drops (a browser broadcast's connection, or the
encoder's RTMP feed stopping after it was received) - Audible alert — opt-in audio beep on disconnect (enable in Audio settings → "Disconnect Sound Alert",
or Alerts → "Disconnect Audio" in the encoder settings; one preference, kept in this browser) - Low-bitrate alert — opt-in (Audio settings → "Low Bitrate Alert"): when a browser broadcast's upload
stays under 30% of its target bitrate for about 18 seconds, a warning and a lower beep, once until it recovers - Automatic reconnection with exponential backoff (3s → 30s max)
- Connection status indicator (protocol name when connected, status when not)
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:
- Video resolution and frame rate
- Target bitrate
- Audio device selection
- TTS mode and voice settings
- Auto-reconnect behavior
- Stream title and category
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):
- Codec: the settings' Codec Preference (VP8 or H.264). Under Auto, a phone or tablet sends H.264, which its
hardware encodes, and a computer sends the router's first codec (VP8). Screen shares stay on the router's first codec.
The recorder, restreams, live thumbnails and AI vision build their pipelines from the producer's codec, as they do
for H.264 from OBS over WHIP. - Limits: Max Bitrate and FPS are the encoding's
maxBitrateandmaxFramerate, and the start bitrate ismin(2500, target)kbps. A camera keeps its frame rate under pressure (degradationPreference: maintain-framerate:
resolution drops first); a screen share keeps its detail. - Changed while live: resolution, frame rate and bitrate apply without a restart (
applyBroadcastQuality: the
camera'sapplyConstraintsand the producer's encoding parameters), from the settings or the phone studio's Video
quality. - Battery saver (
openvibe_battery_saverin localStorage, this device only): 480p, 30 fps, at most 1 Mbps. - The browser's own VOD recorder is only a fallback: it starts when
GET /api/vods/stream/:id/recordingsays the
server is not recording the stream after about 24 seconds, never when the channel records nothing, and it stops when
the server refuses a slice (403). - On a phone, the frame watchdog reads the camera track's frame count (MediaStreamTrack stats) instead of copying a
frame every second (a computer still copies one each second: that keeps PipeWire capture awake).
This page is rendered from docs/broadcasting.md in the OpenVibe.Live repository. Found a mistake? Edit it there.