Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

videocall-rs

> 开发工具
Open source

media streaming framework and teleconferencing system written in rust

1.8K stars0 likes1 views
WebsiteGitHub

About

media streaming framework and teleconferencing system written in rust

videocall.rs

videocall.rs is an open-source, low-latency video conferencing platform and streaming API written entirely in Rust. It is a WebRTC alternative built on WebTransport (HTTP/3 and QUIC) with an automatic WebSocket fallback, and it runs in the browser, on native devices through a command-line client, and on mobile through iOS and Android SDKs. It is self-hostable, dual-licensed under MIT and Apache-2.0, and built for real-time video streaming from robots, drones, and embedded Linux boards (Raspberry Pi, Jetson) as well as conventional browser-to-browser calls.

Website | Documentation | Discord | Crates.io

Project status: Beta. Actively developed and used in production for non-critical workloads.

Table of Contents

  • What videocall.rs is for
  • Features
  • FAQ
  • Why WebTransport instead of WebRTC?
  • How it compares
  • Browser compatibility
  • Architecture
  • Getting Started
    • Prerequisites
    • Dev loop
    • Container images
    • OAuth (optional)
    • Nix build system
  • Runtime configuration (config.js)
  • Usage
  • Meeting management
  • Performance
  • Security
  • Feature flags
  • Testing
  • Release history
  • Contributing
  • Demos and media
  • Contributors
  • Sponsors
  • License

What videocall.rs is for

videocall.rs gives you the building blocks for real-time video communication without the WebRTC stack. It is aimed at three audiences:

  • Software professionals building custom video applications on a type-safe Rust API, from web apps to autonomous-vehicle feeds.
  • Robotics and IoT engineers streaming low-latency video from drones, robots, and embedded devices using the lightweight videocall-cli and the mobile SDKs.
  • Teams that want to self-host their own conferencing infrastructure with JWT authentication, SSO/OAuth, and transport encryption (TLS 1.3 / QUIC), deployed with the provided Helm charts.

The same core powers browser calls at videocall.rs.

Features

  • Low latency by design. Media travels over WebTransport (QUIC/HTTP3), which avoids head-of-line blocking and recovers from packet loss faster than TCP-based transports.
  • WebTransport with WebSocket fallback. Clients negotiate WebTransport where available and fall back to WebSockets automatically for compatibility.
  • Encrypted in transit. WebSocket connections use TLS 1.3 and WebTransport uses QUIC's built-in TLS 1.3, so media is encrypted between each client and the relay. See Security.
  • Browser, native, and mobile clients. A Dioxus/WebAssembly web UI, a native videocall-cli for headless streaming, and videocall-sdk bindings for iOS and Android.
  • Horizontally scalable. A NATS pub/sub backbone lets WebSocket and WebTransport servers scale independently behind a load balancer.
  • Self-hostable. Kubernetes Helm charts, a fully native dev stack, and reproducible container images built with Nix.
  • Pure-Rust media pipeline. VP9 encode/decode and Opus audio are pure Rust with no C libvpx or libopus dependency.
  • Open source. Dual-licensed under MIT and Apache-2.0.

FAQ

Is videocall.rs a WebRTC replacement?

For most server-mediated video use cases, yes. videocall.rs does not use WebRTC's peer-connection stack. Media flows over WebTransport (QUIC/HTTP3), or a WebSocket fallback, to a Rust server that forwards packets to other participants through NATS. You give up WebRTC's mature browser SFU ecosystem, but you also drop ICE, STUN/TURN, and SDP negotiation entirely.

Can I self-host it?

Yes. The repository ships Helm charts for Kubernetes and a fully native local dev stack. Production container images are built reproducibly with Nix. See Getting Started and the architecture document.

Does it work in the browser?

Yes, on Chromium-based browsers (Chrome, Edge, Brave) and Safari (macOS and iOS). Firefox is not currently supported. See Browser compatibility.

How is it different from LiveKit, Jitsi, or mediasoup?

Those stacks are WebRTC selective-forwarding units. videocall.rs forwards media over WebTransport/QUIC instead of WebRTC, is written entirely in Rust (server, browser client, and native client), and requires no STUN/TURN/ICE infrastructure. See How it compares.

Can I stream from a Raspberry Pi?

Yes. videocall-cli is a headless native client that streams from a camera on Raspberry Pi, Jetson Nano, and other embedded Linux devices. See CLI-based streaming.

Is the media encrypted?

Media is encrypted in transit. WebSocket connections use TLS 1.3, and WebTransport uses QUIC's built-in TLS 1.3 encryption, so media is protected between each client and the relay. The relay server forwards media between participants; it is not end-to-end encrypted.

Why WebTransport instead of WebRTC?

WebTransport is the core technology that sets videocall.rs apart. Built on HTTP/3 and QUIC, it provides multiplexed, bidirectional streams and datagrams with modern congestion control. Choosing it over WebRTC has concrete consequences:

  • No ICE, STUN, or TURN. Clients connect to a server over QUIC. There is no NAT-traversal negotiation, no candidate gathering, and no relay-server fleet to operate for connectivity.
  • No SDP signaling dance. Session setup is a single QUIC handshake rather than an offer/answer exchange over a separate signaling channel.
  • Better loss recovery. QUIC's per-stream flow control avoids the head-of-line blocking that degrades TCP-based transports on lossy links, which matters on mobile and long-haul networks.
  • Faster connection establishment. QUIC's 0-RTT and 1-RTT handshakes reduce setup round-trips compared with WebRTC's multi-step negotiation.
  • A standards-track platform. WebTransport is developed at the IETF and W3C with active browser-vendor support.

videocall.rs still runs a forwarding server, so it is architecturally closer to an SFU than to peer-to-peer WebRTC. The difference is that the transport and signaling are radically simpler: no ICE, no TURN, no SDP. For a deep dive, see the architecture document.

How it compares

An honest, verifiable comparison with widely used WebRTC-based stacks. All four are open source and server-mediated (SFU-style); the differences are in transport and implementation language.

Project Media transport Signaling / NAT traversal Core language License
videocall.rs WebTransport (QUIC/HTTP3), WebSocket fallback QUIC handshake, no ICE/STUN/TURN Rust (server, browser, native) MIT / Apache-2.0
LiveKit WebRTC ICE / STUN / TURN Go Apache-2.0
Jitsi Videobridge WebRTC ICE / STUN / TURN Java Apache-2.0
mediasoup WebRTC ICE / STUN / TURN C++ core, Node.js / Rust API ISC

videocall.rs is the youngest of these and does not yet match their breadth of client SDKs, recording, and ecosystem integrations. Its advantage is a simpler transport and a single-language (Rust) codebase from server to browser.

Browser compatibility

Browser Support
Chrome Yes
Brave Yes
Edge Yes
Safari (macOS, iOS) Yes
Firefox No

Architecture

videocall.rs follows a microservices architecture in which clients connect over WebSocket or WebTransport and servers exchange media through a NATS pub/sub backbone.

mermaid
graph TD
    Clients[Clients<br>Browsers, Mobile, CLI] -->|WebSocket| ActixAPI[Actix API<br>WebSocket]
    Clients -->|WebTransport| WebTransportServer[WebTransport<br>Server]
    ActixAPI --> NATS[NATS<br>Messaging]
    WebTransportServer --> NATS

Primary components:

  1. actix-api streaming servers (websocket_server, webtransport_server, metrics) built on Actix Web.
  2. meeting-api REST/auth API (login, meetings, host controls) on Axum with dbmate migrations.
  3. dioxus-ui web frontend built with Dioxus and compiled to WebAssembly.
  4. videocall-types shared protobuf data types and protocol definitions.
  5. videocall-client client library for native and WebAssembly integration.
  6. videocall-cli command-line client for headless streaming.
  7. videocall-sdk iOS and Android bindings (UniFFI).
  8. videocall-codecs / neteq pure-Rust codec wrappers and adaptive audio jitter buffer.

For details, including connection flows, message routing, and the encryption model, see the architecture document.

Getting Started

Development is fully native: the entire dev stack (postgres, NATS, prometheus, grafana, and the Rust services) runs as host processes supervised by process-compose, with hot reload everywhere. Docker only appears when you want to run the images, which are built by Nix. There are no Dockerfiles in the dev workflow. See docs/nix-architecture.md.

Prerequisites

  • Modern Linux distribution, macOS, or Windows 10/11 (WSL2).
  • Nix, which provides the dev stack, toolchains, and image builds.
    • One-time on multi-user installs: add yourself to trusted-users so builds can pull the project's public binary cache instead of compiling everything locally. Until then Nix prints ignoring untrusted substituter 'https://videocall-rs.cachix.org' (harmless, but slow):
      bash
      echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf
      sudo pkill nix-daemon
  • Docker is not needed. It is optional, only if you want to docker run a published image locally.
  • A Chromium-based browser (Chrome, Edge, Brave) or Safari (macOS, iOS). Firefox is not supported.

Dev loop (everything native, hot reload, zero Docker)

bash
git clone https://github.com/security-union/videocall-rs.git
cd videocall-rs
make dev

That's it. make dev opens the process-compose TUI running the whole stack as native processes:

Process What Port
postgres postgresql from nixpkgs, state in .data/postgres 5432
nats nats-server with JetStream, state in .data/nats 4222 / 8222
meeting-api dbmate migrations, then cargo watch 8081
websocket / webtransport cargo watch 8080 / 4433 udp
metrics / server-stats cargo watch 9091 / 9092
dioxus-ui tailwind watch + trunk serve 3001
prometheus / grafana native, same dashboards/config as the container stack 9090 / 3000

Services wait for middleware health (compose-style depends_on), recompile and restart instantly on save, and the TUI can restart individual processes on demand. Open http://localhost:3001 and navigate to a meeting at http://localhost:3001/meeting/<username>/<meeting-id>.

To stop: quit the TUI (F10 /

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustactix-webgoogle-meetsrustrust-lang

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具