EXPLAINER

WebRTC live streaming explained

WebRTC is the open web standard that lets a browser send and receive live audio and video without plugins. It is the reason you can go live from a phone browser with no app.

What WebRTC is

WebRTC (Web Real-Time Communication) is a set of browser features standardised by the W3C and the IETF. It is built into current versions of Chrome, Safari, Firefox and Edge. A web page asks for permission to use the camera and microphone, gets a live media stream, and sends it over an encrypted connection to other browsers or to a server. All of this happens in the page itself, with no download.

How a broadcast travels

  1. 1

    Capture

    The page requests the camera and microphone. The browser shows a permission prompt, and capture only starts if you allow it.

  2. 2

    Connection setup

    The page and the service exchange the details needed to connect, which is called signalling. On LiveSnap.tv this runs over HTTPS and does not carry the video.

  3. 3

    Media relay

    The picture and sound go to a media server that forwards them to viewers.

  4. 4

    Playback

    Each viewer’s browser receives the stream over WebRTC and plays it. Quality depends on their own network and device.

For the exact components used by LiveSnap.tv, see the WebRTC architecture page.

What an SFU does

An SFU (Selective Forwarding Unit) is a media server that receives each broadcast once and forwards it to every viewer. It does not mix the video into a new file. This is why a phone only has to upload a single copy of the stream, no matter how many people watch, which keeps the load on the broadcaster’s connection low.

WebRTC compared with RTMP and HLS

Security and privacy basics

Limits to know about

Frequently asked questions

Do I need a plugin or an app for WebRTC?

No. WebRTC is built into current browsers, which is why LiveSnap.tv works without installing anything.

Does WebRTC work on iPhone?

Yes, in Safari from iOS 11 onwards. Some in-app browsers restrict camera access, so open the page in Safari or Chrome.

Why is WebRTC delay lower than HLS?

HLS delivers video as a series of files, which adds buffering. WebRTC streams media continuously and uses small buffers, so viewers see the picture sooner.

Is WebRTC encrypted?

Yes. Media travels with DTLS-SRTP encryption. Encryption protects the stream in transit, not from the people who are allowed to watch it.

Try it on LiveSnap.tv

Open the home page, watch the current broadcast and scan the QR code to broadcast from your phone. No app and no account are needed.

Go to LiveSnap.tv