One server, portable C SDKs, and end-to-end demos for browser, Android, native playback, and FLV ingest.

Live streaming has been stuck in a three-way trade-off for years:

Low latency. Large scale. Low cost. Pick two.

  • RTMP is easy to adopt, but it runs on TCP. One lost packet can hold up everything behind it.
  • HLS / DASH scale well, but they are built on segments and buffering. The score can change before the video catches up.
  • WebRTC gets latency down, but it was designed for conversations, not for distributing a live show to a large audience.

Media over QUIC (MoQ) is the IETF's attempt to break that trade-off. It puts media on QUIC streams and WebTransport, so a live stream can be low-latency without inheriting TCP's head-of-line blocking.

We built an open-source, end-to-end stack around it:

https://github.com/runner365/moqlivecast

And we made a deliberate choice: we implemented the QUIC, HTTP/3, and WebTransport layers ourselves, in C.

No third-party QUIC library. No black box between our media logic and the network.

That choice is the reason this project exists.

What MoQ changes

MoQ is not "RTMP over UDP." It changes the shape of the problem.

QUIC streams, not one ordered pipe

QUIC multiplexes independent streams over one connection. A control message, a catalog update, and a video keyframe do not have to share one ordered queue.

A live stream becomes a URL

A MoQ endpoint can look like this:

https://your-server:4433/moq?app=live&stream=123456 

It is still HTTPS from the browser's point of view. Same certificates, same domains, same firewall rules — and no plugin or app install.

PUBLISH and SUBSCRIBE are explicit

The URL identifies the stream. The protocol message says what you want to do:

  • PUBLISH — I want to send this stream.
  • SUBSCRIBE — I want to receive it.

That separation makes the model much cleaner than overloading push/pull into URL paths.

What we built

moqlivecast is an open-source live media stack with a C/C++ core.

It supports:

  • MoQ Transport draft-22 push and pull over WebTransport;
  • WebTransport FLV push and pull;
  • HTTP-FLV and WebSocket-FLV playback;
  • RTMP ingest and playback;
  • browser publishing and playback with WebCodecs;
  • a portable C SDK for MoQ publishing and subscribing;
  • a command-line FLV → MoQ push demo;
  • Android publishing over moq-lite-06;
  • a native desktop player built on the C SDK;
  • edge / origin clustering;
  • server-side GOP cache for fast start.

The same server binary can serve multiple ingest and playback paths. Existing HTTP-FLV players can keep working while new clients use MoQ.

It is not just a server

This is the part that is often missing from MoQ demos: a complete path from ingest to playback.

The repository contains the server, the SDKs, and working clients:

Layer Component What it does
Server moqlivecast ingest, media core, GOP cache, distribution
C SDK moq_transport_client MoQ draft-22 publish / subscribe over WebTransport
C API moqlite moq-lite-06 for Android and the cluster link
Web demo tools/moq_js_client browser publish and playback with WebCodecs
Android demo tools/android Camera2 + mic → H.264/AAC → moq-lite-06
FLV push demo flv2moqtransport_client local FLV file → MoQ Transport
Native player moq_player C SDK pull + FFmpeg decode + SDL3 render

The native player is a separate repository:

https://github.com/runner365/moq_player

That means you can test the full loop:

browser / FLV file / Android camera │ ▼ moqlivecast │ ▼ browser / native player / HTTP-FLV / RTMP 

You do not have to write a client from scratch just to evaluate the server. And if you do want to build your own product, the same C SDKs are there to embed.

What makes it different

This is the part I care about most.

1. The transport is ours, end to end

The QUIC, HTTP/3, and WebTransport stack is implemented from scratch in C.

That means:

  • the code is small enough to understand;
  • the media path can be optimized for live traffic;
  • it can be cross-compiled to edge devices;
  • there is no dependency on a vendor's QUIC roadmap.

For teams building their own media infrastructure, control over the transport layer is not a detail. It is the foundation.

2. One server, many protocols

Most stacks ask you to choose one path.

This one is designed as a unified ingest and distribution layer:

RTMP / MoQ / WebTransport FLV │ ▼ MediaStreamManager + GOP cache │ ┌─────────┼─────────┐ ▼ ▼ ▼ MoQ HTTP-FLV WebSocket-FLV 

The protocols share one media core, one GOP cache, and one stream model.

That means you can add MoQ without rebuilding your entire live stack.

3. Browser-native on both sides

The web client uses:

  • WebTransport for the MoQ session;
  • WebCodecs for H.264/H.265 decoding;
  • WebGL for rendering.

Publishing from the browser does not require OBS or a desktop app. Playback does not require a plugin or a custom player download.

Open a page, publish or play. That is a very different onboarding path from a traditional live stack.

4. Congestion control is pluggable

This is, in my opinion, the most useful part for developers.

The congestion-control layer is an interface, not a hard-coded block inside the transport.

The project ships with BBR, CUBIC, and NewReno. You can switch algorithms, or implement your own for:

  • satellite links;
  • private networks;
  • long-haul paths;
  • unusual loss patterns;
  • your own real-time media workload.

You do not need to fork the QUIC stack to experiment with a new CC algorithm.

5. End-to-end SDKs and demos, not just a server

There is a server, portable C SDKs, a browser client, an Android push app, a native player, an FLV push tool, and an edge/origin cluster.

That matters because MoQ is not just a packet format. It is a system:

ingest → media core → GOP cache → distribution → player 

Having all of those pieces in one open-source project makes it much easier to test an idea end to end.

You can start with a demo, then replace one piece at a time with your own client or SDK integration.

6. MIT licensed, embeddable, and yours to modify

The project is MIT licensed.

You can:

  • use it commercially;
  • modify it;
  • embed it in your own product;
  • ship a closed-source distribution;
  • run it on your own infrastructure.

No platform lock-in. No “contact sales” to inspect the transport.

Why this matters

Live commerce, sports, remote control, interactive shows, AI voice, private networks — they all share the same need:

Keep the interaction live, without making the audience wait for a buffer to recover.

MoQ is still being standardized, and the ecosystem is early. But the direction is clear: media transport is moving from “one reliable pipe for everything” toward streams, priorities, and application-aware delivery.

We want this project to be a practical place to explore that direction.

A note on maturity

This is an early-stage implementation, not a complete IETF MoQ implementation. The drafts are still moving.

But it is not a slideware demo. It runs, it serves real streams, and it comes with browser, mobile, native, and FLV push clients around it.

That is enough to start a serious conversation.

Open source

If this is useful:

  • ⭐ star the repository;
  • 🐛 open an issue, especially for interoperability problems;
  • 🔧 send a PR, especially for congestion control or MoQ control-plane work;
  • 💬 tell us about your network environment.

MoQ is still being written. The implementations that get tested in the real world will shape what comes next.

That is the part we are excited about.

References