50 releases (17 breaking)

0.17.1 Aug 12, 2024
0.17.0 May 10, 2024
0.16.0 Feb 5, 2024
0.14.0 Dec 18, 2023
0.0.8 Nov 29, 2020

#32 in Multimedia

Download history 54/week @ 2024-08-22 21/week @ 2024-08-29 45/week @ 2024-09-05 49/week @ 2024-09-12 146/week @ 2024-09-19 202/week @ 2024-09-26 233/week @ 2024-10-03 305/week @ 2024-10-10 266/week @ 2024-10-17 24/week @ 2024-10-24 39/week @ 2024-10-31 42/week @ 2024-11-07 27/week @ 2024-11-14 123/week @ 2024-11-21 118/week @ 2024-11-28 96/week @ 2024-12-05

369 downloads per month
Used in hyperspeed-broadcast

ISC license

2.5MB
65K SLoC

C++ 44K SLoC // 0.1% comments Rust 20K SLoC // 0.0% comments FlatBuffers Schema 1.5K SLoC // 0.0% comments Python 636 SLoC // 0.2% comments Shell 203 SLoC // 0.0% comments JavaScript 55 SLoC // 0.1% comments

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 or Rust crate in server side.
  • Be a tiny TypeScript 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

Social

Sponsor

You can support mediasoup by sponsoring it. Thanks!

License

ISC

Dependencies

~5–14MB
~164K SLoC