20 releases

Uses new Rust 2021

0.4.3 Jul 28, 2022
0.3.3 Apr 2, 2022
0.3.2 Jan 13, 2022
0.3.1 Dec 26, 2021
0.1.0 Mar 31, 2021

#62 in Video

Download history 71/week @ 2022-04-20 168/week @ 2022-04-27 180/week @ 2022-05-04 329/week @ 2022-05-11 152/week @ 2022-05-18 219/week @ 2022-05-25 193/week @ 2022-06-01 139/week @ 2022-06-08 78/week @ 2022-06-15 84/week @ 2022-06-22 92/week @ 2022-06-29 278/week @ 2022-07-06 138/week @ 2022-07-13 214/week @ 2022-07-20 176/week @ 2022-07-27 58/week @ 2022-08-03

617 downloads per month
Used in 2 crates (via mediasoup)

ISC license

1.5MB
36K SLoC

C++ 35K SLoC // 0.1% comments Python 229 SLoC // 0.2% comments C 217 SLoC // 0.1% comments Rust 203 SLoC // 0.1% comments Shell 188 SLoC // 0.0% comments JavaScript 22 SLoC

mediasoup v3

Website and Documentation

Support Forum

Design Goals

mediasoup and its client side libraries are designed to accomplish with the following goals:

  • Be a SFU (Selective Forwarding Unit).
  • Support both WebRTC and plain RTP input and output.
  • Be a Node.js module/Rust crate in server side.
  • Be a tiny JavaScript and C++ libraries in client side.
  • Be minimalist: just handle the media layer.
  • Be signaling agnostic: do not mandate any signaling protocol.
  • Be super low level API.
  • Support all existing WebRTC endpoints.
  • Enable integration with well known multimedia libraries/tools.

Architecture

Use Cases

mediasoup and its client side libraries provide a super low level API. They are intended to enable different use cases and scenarios, without any constraint or assumption. Some of these use cases are:

  • Group video chat applications.
  • One-to-many (or few-to-many) broadcasting applications in real-time.
  • RTP streaming.

Features

  • ECMAScript 6/Idiomatic Rust low level API.
  • Multi-stream: multiple audio/video streams over a single ICE + DTLS transport.
  • IPv6 ready.
  • ICE / DTLS / RTP / RTCP over UDP and TCP.
  • Simulcast and SVC support.
  • Congestion control.
  • Sender and receiver bandwidth estimation with spatial/temporal layers distribution algorithm.
  • Data message exchange (via WebRTC DataChannels, SCTP over plain UDP, and direct termination in Node.js/Rust).
  • Extremely powerful (media worker thread/subprocess coded in C++ on top of libuv).

Demo Online

Try it at v3demo.mediasoup.org (source code).

Authors

Sponsor

You can support mediasoup by sponsoring it. Thanks!

License

ISC

No runtime deps