Socket
Socket
Sign inDemoInstall

mediasoup

Package Overview
Dependencies
7
Maintainers
1
Versions
341
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mediasoup

Powerful WebRTC SFU ("Selective Forwarding Unit") server built on Node and C++


Version published
Weekly downloads
8.8K
decreased by-4.48%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

mediasoup

Powerful WebRTC SFU ("Selective Forwarding Unit") server built on Node and C++.

IMPORTANT!

  • Not yet ready, working on it.

Usage

var mediasoup = require('mediasoup');

// Create a server with 4 worker subprocesses:
var server = mediasoup.Server({ numWorkers: 4 });

// Create a conference room:
var room = server.Room();

// Add a participant into the room:
var peer1 = room.Peer();

// Create a single transport ("bundle") for sending/receiving both audio and video:
peer1.createTransport({ udp: true, tcp: true })
    .then((transport) =>
    {
        transport.iceLocalCandidates.forEach((candidate) =>
        {
            console.log('local ICE candidate: %o', candidate);
        });
    });

// TODO: more stuff coming soon

Features

  • Not a boring standalone server, but a Node library exposing a pure JavaScript API.
  • Supports WebRTC media requirements (ICE-Lite, DTLS-SRTP, rtcp-mux, bundle) along with classic VoIP technologies (SDES-SRTP, plain RTP/RTCP).
  • ICE/DTLS/RTP/RTCP over UDP and TCP.
  • Multi participant real-time sessions.
  • IPv6 ready.
  • Signaling agnostic. mediasoup does not deal with SIP or other signaling protocols. In the other side, it can deal with any signaling protocol.
  • SDP unaware. Really, mediasoup will not parse a SDP for you.
  • Extremely powerful. Media handler subprocess (mediasoup-worker) is coded in C++ on top of the awesome libuv asychronous I/O library. mediasoup takes full advantage of your CPU capabilities by launching as many workers as needed.

Author

Iñaki Baz Castillo (@ibc at Github)

License

ISC

FAQs

Last updated on 01 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc