WebRTC for NodeJS
npm install webrtc-native --save
npm install && test | Windows 8.1 | OSX | Ubuntu 14.04 | Fedora 22 |
---|---|---|---|---|
NodeJS v0.10.x | Yes | Yes | Yes | Yes |
NodeJS v0.12.x | Yes | Yes | Yes | Yes |
Io.js v2.3.1 | Yes | Yes | Yes | Yes |
Feature | Windows 8.1 | OSX | Ubuntu 14.04 | Fedora 22 |
---|---|---|---|---|
RTP DataChannels | Yes | Yes | Yes | Yes |
SCTP DataChannels | Yes | Yes | Yes | Yes |
Audio Capture | Yes | Yes | Untested | Untested |
Video Capture | Yes | No | Untested | Untested |
Screen Capture | No | No | No | No |
Window Capture | No | No | No | No |
var WebRTC = require('webrtc-native');
WebRTC.RTCPeerConnection
WebRTC.RTCIceCandidate
WebRTC.RTCSessionDescription
WebRTC.RTCDataChannel
WebRTC.MediaStream
WebRTC.MediaStreamTrack
WebRTC.getUserMedia
WebRTC.getSources
- Returns array of available device inputs
- Notify V8 Engine to attempt to free memory.
- Enable / Disable WebRTC log messages
git clone https://github.com/vmolsa/webrtc-native
cd webrtc-native
export BUILD_WEBRTC=true
npm install
You must build with Visual Studio 2013 Update 4, no other versions are supported.
You must have Windows 7 x64 or later. x86 OSs are unsupported.
You must run "npm install" with administrator privileges.
XCode 3.0 or higher
sudo apt-get install --yes build-essential python2.7 git pkg-config libnss3-dev libasound2-dev libpulse-dev libjpeg62-dev libxv-dev libgtk2.0-dev libexpat1-dev default-jdk libxtst-dev libxss-dev libpci-dev libgconf2-dev libgnome-keyring-dev libudev-dev
sudo dnf update -y
sudo dnf groupinstall -y "Development tools"
sudo dnf install -y git gcc-c++ nss-devel SAASound-devel alsa-lib-devel systemd-devel pulseaudio-libs-devel turbojpeg-devel libXv-devel gtk+-devel expat-devel java-1.8.0-openjdk-devel gtk2-devel libXtst-devel libXScrnSaver-devel redhat-lsb pciutils-devel dbus-devel pkgconfig GConf2-devel libgnome-keyring-devel