Media-over-QUIC is a streaming protocol built upon cutting edge protocols (QUIC, HTTP3) and browser APIs (WebTransport, WebCodecs). It's slightly faster than WebRTC, has an advanced data recovery mechanism (placed at the frame level and not at the packet level), it supports additional codecs (FLAC) and is less complicated to route.
1.5 KiB
WebRTC clients
| supported codecs | |
|---|---|
| video | AV1, VP9, VP8, H265, H264 |
| audio | Opus, G722, G711 (PCMA, PCMU) |
WebRTC is an API that makes use of a set of protocols and methods to connect two clients together and allow them to exchange live media or data streams. You can publish a stream with WebRTC and a web browser by visiting:
http://localhost:8889/mystream/publish
The resulting stream will be available on path /mystream.
WHIP is a WebRTC extension that allows to publish streams by using a URL, without passing through a web page. This allows to use WebRTC as a general purpose streaming protocol. If you are using a software that supports WHIP (for instance, latest versions of OBS Studio), you can publish a stream to the server by using this URL:
http://localhost:8889/mystream/whip
Be aware that not all browsers can read any codec, check Codec support in browsers.
Depending on the network it might be difficult to establish a connection between server and clients, read Solving WebRTC connectivity issues.
Some clients that can publish with WebRTC and WHIP are FFmpeg, GStreamer, OBS Studio, Unity and Web browsers.