Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webRTC in node.js

Tags:

node.js

webrtc

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.

like image 270
Simone Sanfratello Avatar asked Feb 19 '17 10:02

Simone Sanfratello


People also ask

What is WebRTC in node JS?

node-webrtc is a Node. js Native Addon that provides bindings to WebRTC M81. This project aims for spec-compliance and is tested using the W3C's web-platform-tests project. A number of nonstandard APIs for testing are also included.

What is Socket.IO in Nodejs?

Socket.IO is a library that enables real-time, bidirectional and event-based communication between the browser and the server. It consists of: a Node. js server: Source | API. a Javascript client library for the browser (which can be also run from Node.


2 Answers

  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

like image 128
Sasi Varunan Avatar answered Oct 31 '22 21:10

Sasi Varunan


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

like image 37
Simone Sanfratello Avatar answered Oct 31 '22 20:10

Simone Sanfratello