9

I'd like to use webRTC in node.js to manage mixed connections involving peer on browser and nodejs.

I did some tests and searches, I tried using wrtc or webrtc-native but in both cases I can't get them works getting builded binaries or rebuild them (tried on Debian 8, Ubuntu 14 and 16). It also seems the projects are discontinued and I found only articles having 2-3 years old.

I'm looking for advices about modules or libraries to use, or how to make wrtc or webrtc-native works.

Simone Sanfratello
  • 1,520
  • 1
  • 10
  • 21

3 Answers3

5
  1. NodeJs a simple mesh type media network.

    express module - web server to serve your html client

    socket.io - Signalling server to exchange SDP and ICE candidates

    Refer WebRTC-Example, webrtc-group-chat-example to write your own client and server model


  1. Kurento standalone server (MCU media network) not in Node but has an npm module for client side

    Refer Kurento


  1. NodeJS MediaSoup SFU media network

    Not sure of client model but refer MediaSoup API

Sasi Varunan
  • 2,806
  • 1
  • 23
  • 34
3

A lot of nodejs libs exists for webrtc. but they share one problem ... webrtc.node sometimes does not work on your machine and you have to recompile one for yourself to use.

I made a module that is a compination of other modules. The module is mainly the code of webrtc-native but the webrtc.node binary is built using script used in node-webrtc. That was useful to be as node-webrtc uses build-webrtc to compile the code and extract headers, and I find this handy.

It compiles and builds straight forward.... make sure you check the readme to find the tricks.

Andrea Girardi
  • 4,337
  • 13
  • 69
  • 98
M.Hefny
  • 2,677
  • 1
  • 26
  • 30
2

I discovered wrtc version 0.0.60 it's ok, so just use that version and webRTC on node.js works

Simone Sanfratello
  • 1,520
  • 1
  • 10
  • 21