Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QUICHE MoQ

⚠️ Not production ready, experimental research code

This project is not affiliated with Cloudflare quiche

A Media over QUIC Transport (MoQT) implementation for quiche, drafts 07 to 19, over WebTransport and native QUIC.

Contents

Protocol

  • moq_wire_primitives: no_std varints, bounded strings, reader and writer
  • moq_wire: encoding of MoQT messages, objects and streams, drafts 07 to 19
  • moq_core: sans-IO session state machine behind a small Transport trait, no_std
  • moq_loc: typed LOC properties (codec config, timestamps, ...)
  • moq_object_cache: caches reassembling and storing objects by location
  • moq_pacing: playback speed from buffer level

Transports and runtimes

Applications

  • moq_cli: the moq node: publish, subscribe, relay and route tracks
  • moq_web: browser player on WebTransport and WebCodecs, Rust and WASM

Testing

Architecture

flowchart TD
    cli[moq_cli] --> helper[quiche_moq_webtransport_helper]
    helper --> qmoq[quiche_moq]
    web[moq_web] --> async[moq_core_async]
    tokio[moq_tokio] --> async
    async --> core
    qmoq -- "impl Transport" --> core[moq_core]
    qmoq --> wt[quiche_webtransport]
    tokio --> wt
    wt --> quiche[quiche fork]
    qmoq --> quiche
    tokio --> tq[tokio-quiche]
    web --> browser[browser WebTransport, WebCodecs]
    core --> wire[moq_wire] --> prim[moq_wire_primitives]
    cli & web & async -.-> cache[moq_object_cache]
    cli & web -.-> loc[moq_loc] & pacing[moq_pacing]
    classDef repo fill:#f48120,stroke:#b35d10,color:#fff
    class cli,helper,qmoq,web,async,tokio,core,wt,wire,prim,cache,loc,pacing repo
Loading

Orange boxes are crates of this repository, the others external dependencies.

moq_core holds all protocol logic and does no I/O. Each platform implements its Transport: quiche_moq for mio event loops (moq_cli), moq_core_async for async callers, with moq_tokio natively and moq_web in the browser. Buffering and caching policy stay with the application.

Features

  • drafts 07 to 19, modelled on draft 19 and mapped to each older draft; a feature a draft lacks is refused there
  • WebTransport (https://) and native QUIC (moqt://, draft 15+) sessions
  • subscribe, publish, namespace announce and subscribe, SUBSCRIBE_TRACKS, track status and fetch
  • request updates, range filters, delivery timeouts, priorities, streams and datagrams
  • relaying with namespace re-announcement, multipath subscriptions, race and reconnect of upstreams
  • browser player with live WebCodecs video and audio, adaptive playback pacing, stats panels
  • typed LOC properties, fMP4 demuxing and remuxing
  • qlog of control messages and objects
  • runtime-tunable QUIC transport and padding stream
  • fuzzed decoders and sessions, interop tested in moq-interop-runner as birneee-moq

Drafts before 15 negotiate the version in the SETUP messages, from draft 15 on ALPN or WT-Available-Protocols pin exactly one. Draft 16 is the best tested version.

Planned Features

  • fetch before draft 15
  • datagrams before draft 14
  • replacing range filters with a request update
  • UNSUBSCRIBE_NAMESPACE

Quick start

$ nix develop
$ RUST_LOG=info cargo run -p time-server
[INFO  time_server] start server on 0.0.0.0:8080
$ RUST_LOG=info cargo run -p time-client
[INFO  time_client] subscribe clock second
[INFO  time_client] received "2025-10-17T11:37:17.265898446+02:00"

License

MIT, see LICENSE.

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages