Skip to content

wwl33695/webrtc-streaming-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebRTC for NodeJS

Chromium

webrtc-native is using webrtc from chromium project. code is compiled with branch 47.

Install

npm install webrtc-native --save

Compatibility x64

nodejs / io.js Windows 8.1 OSX Ubuntu 14.04
nodejs-v0.10.x x x x
nodejs-v0.12.x x x x
iojs-v2.3.x x x x
iojs-v3.3.x x x x
iojs-v4.2.1 x x x

API

Usage

var WebRTC = require('webrtc-native');

WebRTC.getSources

  • Returns array of available device inputs

WebRTC.RTCGarbageCollect()

  • Notify V8 Engine to attempt to free memory.

WebRTC.setDebug(boolean)

  • Enable / Disable WebRTC log messages

Build from source

git clone https://github.com/vmolsa/webrtc-native
cd webrtc-native
export BUILD_WEBRTC=true
npm install

Prerequisite software

Windows

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.

OS X

XCode 3.0 or higher

Ubuntu 14.04 LTS

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

Fedora 22

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.4%
  • JavaScript 14.1%
  • Python 1.6%
  • Other 0.9%