Node-RTCPeerConnection is an attempt ( current WIP ) to create a specification-compatible RTCPeerConnection implementation for Node.js entirely in JavaScript without native C or C ++ code. This allows browser peers to communicate with peers (Node.js).
But you cannot use it for production yet.
In addition, we also have wrtc (node-webrtc), which provides its own module for NodeJS, which supports a subset of WebRTC-compliant features. In particular, the PeerConnection API and DataChannel.
Too many people have wrtc problems. Since he has to download a lot of source code and compile it only to find out that after some time it crashes on certain platforms. Unfortunately, it does not come with the pre-packaged packages described in this release.
You can use either the google implementation of webrtc or a later (from Ericsson) implementation called openWebrtc . OpenWebRTC developers are very proud to launch their implementation on various devices, such as raspberry pi and iOS devices.
Electronic-webrtc (which, in turn, uses electronic-built-in ) is best for me for better compatibility. He creates a hidden Electron process (which is based on Chromium, so WebRTC support is great!) And contacts this process to enable WebRTC in Node.js. This adds a lot of overhead.
It is intended for use with RTCDataChannels, therefore the MediaStream API is not supported.
Other sources:
https://github.com/webrtcftw/goals/issues/1
source share