<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Wei Shi</title>
    <description>The latest articles on DEV Community by Wei Shi (@wei_shi_683f515fd2ebe4b9b).</description>
    <link>https://dev.to/wei_shi_683f515fd2ebe4b9b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4277356%2F8f1afefa-99a4-445b-99ec-575be62ae104.png</url>
      <title>DEV Community: Wei Shi</title>
      <link>https://dev.to/wei_shi_683f515fd2ebe4b9b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wei_shi_683f515fd2ebe4b9b"/>
    <language>en</language>
    <item>
      <title>Media over QUIC Is Here: We Open-Sourced a MoQ Live Streaming Stack</title>
      <dc:creator>Wei Shi</dc:creator>
      <pubDate>Wed, 02 Dec 2026 08:00:29 +0000</pubDate>
      <link>https://dev.to/wei_shi_683f515fd2ebe4b9b/media-over-quic-is-here-we-open-sourced-a-moq-live-streaming-stack-3ome</link>
      <guid>https://dev.to/wei_shi_683f515fd2ebe4b9b/media-over-quic-is-here-we-open-sourced-a-moq-live-streaming-stack-3ome</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;One server, portable C SDKs, and end-to-end demos for browser, Android, native playback, and FLV ingest.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Live streaming has been stuck in a three-way trade-off for years:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Low latency. Large scale. Low cost. Pick two.&lt;/strong&gt;&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;Media over QUIC (MoQ)&lt;/strong&gt; 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.&lt;/p&gt;

&lt;p&gt;We built an open-source, end-to-end stack around it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/runner365/moqlivecast" rel="noopener noreferrer"&gt;https://github.com/runner365/moqlivecast&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And we made a deliberate choice: &lt;strong&gt;we implemented the QUIC, HTTP/3, and WebTransport layers ourselves, in C.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No third-party QUIC library. No black box between our media logic and the network.&lt;/p&gt;

&lt;p&gt;That choice is the reason this project exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MoQ changes
&lt;/h2&gt;

&lt;p&gt;MoQ is not "RTMP over UDP." It changes the shape of the problem.&lt;/p&gt;

&lt;h3&gt;
  
  
  QUIC streams, not one ordered pipe
&lt;/h3&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h3&gt;
  
  
  A live stream becomes a URL
&lt;/h3&gt;

&lt;p&gt;A MoQ endpoint can look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://your-server:4433/moq?app=live&amp;amp;stream=123456
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;h3&gt;
  
  
  PUBLISH and SUBSCRIBE are explicit
&lt;/h3&gt;

&lt;p&gt;The URL identifies the stream. The protocol message says what you want to do:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PUBLISH&lt;/strong&gt; — I want to send this stream.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SUBSCRIBE&lt;/strong&gt; — I want to receive it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That separation makes the model much cleaner than overloading push/pull into URL paths.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we built
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;moqlivecast&lt;/code&gt; is an open-source live media stack with a C/C++ core.&lt;/p&gt;

&lt;p&gt;It supports:&lt;/p&gt;

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

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

&lt;h2&gt;
  
  
  It is not just a server
&lt;/h2&gt;

&lt;p&gt;This is the part that is often missing from MoQ demos: a &lt;strong&gt;complete path from ingest to playback&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The repository contains the server, the SDKs, and working clients:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Server&lt;/td&gt;
&lt;td&gt;&lt;code&gt;moqlivecast&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ingest, media core, GOP cache, distribution&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C SDK&lt;/td&gt;
&lt;td&gt;&lt;code&gt;moq_transport_client&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;MoQ draft-22 publish / subscribe over WebTransport&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C API&lt;/td&gt;
&lt;td&gt;&lt;code&gt;moqlite&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;moq-lite-06 for Android and the cluster link&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web demo&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tools/moq_js_client&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;browser publish and playback with WebCodecs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Android demo&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tools/android&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Camera2 + mic → H.264/AAC → moq-lite-06&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FLV push demo&lt;/td&gt;
&lt;td&gt;&lt;code&gt;flv2moqtransport_client&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;local FLV file → MoQ Transport&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Native player&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/runner365/moq_player" rel="noopener noreferrer"&gt;&lt;code&gt;moq_player&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;C SDK pull + FFmpeg decode + SDL3 render&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The native player is a separate repository:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;&lt;a href="https://github.com/runner365/moq_player" rel="noopener noreferrer"&gt;https://github.com/runner365/moq_player&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That means you can test the full loop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;browser / FLV file / Android camera
              │
              ▼
        moqlivecast
              │
              ▼
browser / native player / HTTP-FLV / RTMP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes it different
&lt;/h2&gt;

&lt;p&gt;This is the part I care about most.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The transport is ours, end to end
&lt;/h3&gt;

&lt;p&gt;The QUIC, HTTP/3, and WebTransport stack is implemented from scratch in C.&lt;/p&gt;

&lt;p&gt;That means:&lt;/p&gt;

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

&lt;p&gt;For teams building their own media infrastructure, &lt;strong&gt;control over the transport layer&lt;/strong&gt; is not a detail. It is the foundation.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. One server, many protocols
&lt;/h3&gt;

&lt;p&gt;Most stacks ask you to choose one path.&lt;/p&gt;

&lt;p&gt;This one is designed as a &lt;strong&gt;unified ingest and distribution layer&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RTMP / MoQ / WebTransport FLV
              │
              ▼
     MediaStreamManager
       + GOP cache
              │
    ┌─────────┼─────────┐
    ▼         ▼         ▼
   MoQ     HTTP-FLV   WebSocket-FLV
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The protocols share one media core, one GOP cache, and one stream model.&lt;/p&gt;

&lt;p&gt;That means you can add MoQ without rebuilding your entire live stack.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Browser-native on both sides
&lt;/h3&gt;

&lt;p&gt;The web client uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WebTransport&lt;/strong&gt; for the MoQ session;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebCodecs&lt;/strong&gt; for H.264/H.265 decoding;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebGL&lt;/strong&gt; for rendering.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Publishing from the browser does not require OBS or a desktop app. Playback does not require a plugin or a custom player download.&lt;/p&gt;

&lt;p&gt;Open a page, publish or play. That is a very different onboarding path from a traditional live stack.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Congestion control is pluggable
&lt;/h3&gt;

&lt;p&gt;This is, in my opinion, the most useful part for developers.&lt;/p&gt;

&lt;p&gt;The congestion-control layer is an interface, not a hard-coded block inside the transport.&lt;/p&gt;

&lt;p&gt;The project ships with &lt;strong&gt;BBR, CUBIC, and NewReno&lt;/strong&gt;. You can switch algorithms, or implement your own for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;satellite links;&lt;/li&gt;
&lt;li&gt;private networks;&lt;/li&gt;
&lt;li&gt;long-haul paths;&lt;/li&gt;
&lt;li&gt;unusual loss patterns;&lt;/li&gt;
&lt;li&gt;your own real-time media workload.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You do not need to fork the QUIC stack to experiment with a new CC algorithm.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. End-to-end SDKs and demos, not just a server
&lt;/h3&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;That matters because MoQ is not just a packet format. It is a system:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ingest → media core → GOP cache → distribution → player
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Having all of those pieces in one open-source project makes it much easier to test an idea end to end.&lt;/p&gt;

&lt;p&gt;You can start with a demo, then replace one piece at a time with your own client or SDK integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. MIT licensed, embeddable, and yours to modify
&lt;/h3&gt;

&lt;p&gt;The project is MIT licensed.&lt;/p&gt;

&lt;p&gt;You can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;use it commercially;&lt;/li&gt;
&lt;li&gt;modify it;&lt;/li&gt;
&lt;li&gt;embed it in your own product;&lt;/li&gt;
&lt;li&gt;ship a closed-source distribution;&lt;/li&gt;
&lt;li&gt;run it on your own infrastructure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No platform lock-in. No “contact sales” to inspect the transport.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;Live commerce, sports, remote control, interactive shows, AI voice, private networks — they all share the same need:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Keep the interaction live, without making the audience wait for a buffer to recover.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;We want this project to be a practical place to explore that direction.&lt;/p&gt;

&lt;h2&gt;
  
  
  A note on maturity
&lt;/h2&gt;

&lt;p&gt;This is an early-stage implementation, not a complete IETF MoQ implementation. The drafts are still moving.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;That is enough to start a serious conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open source
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/runner365/moqlivecast" rel="noopener noreferrer"&gt;https://github.com/runner365/moqlivecast&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Native player:&lt;/strong&gt; &lt;a href="https://github.com/runner365/moq_player" rel="noopener noreferrer"&gt;https://github.com/runner365/moq_player&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Browser demo:&lt;/strong&gt; &lt;a href="https://github.com/runner365/moqlivecast/tree/main/tools/moq_js_client" rel="noopener noreferrer"&gt;https://github.com/runner365/moqlivecast/tree/main/tools/moq_js_client&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android demo:&lt;/strong&gt; &lt;a href="https://github.com/runner365/moqlivecast/tree/main/tools/android" rel="noopener noreferrer"&gt;https://github.com/runner365/moqlivecast/tree/main/tools/android&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FLV push demo:&lt;/strong&gt; &lt;a href="https://github.com/runner365/moqlivecast/tree/main/tools/flv2moqtransport_client" rel="noopener noreferrer"&gt;https://github.com/runner365/moqlivecast/tree/main/tools/flv2moqtransport_client&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; MIT&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If this is useful:&lt;/p&gt;

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

&lt;p&gt;MoQ is still being written. The implementations that get tested in the real world will shape what comes next.&lt;/p&gt;

&lt;p&gt;That is the part we are excited about.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9000.html" rel="noopener noreferrer"&gt;RFC 9000 — QUIC&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9001.html" rel="noopener noreferrer"&gt;RFC 9001 — TLS for QUIC&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9002.html" rel="noopener noreferrer"&gt;RFC 9002 — QUIC Loss Detection and Congestion Control&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9114.html" rel="noopener noreferrer"&gt;RFC 9114 — HTTP/3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.rfc-editor.org/rfc/rfc9297.html" rel="noopener noreferrer"&gt;RFC 9297 — HTTP Datagrams&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://datatracker.ietf.org/doc/draft-ietf-moq-transport/" rel="noopener noreferrer"&gt;draft-ietf-moq-transport&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://datatracker.ietf.org/doc/draft-ietf-webtrans-http3/" rel="noopener noreferrer"&gt;draft-ietf-webtrans-http3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>moq</category>
      <category>quic</category>
      <category>webtransport</category>
      <category>webrtc</category>
    </item>
  </channel>
</rss>
