Skip to content

🔌 WebRTC bindings for Node, written according to the W3C specification.

License

Notifications You must be signed in to change notification settings

aisouard/node-webrtc

Repository files navigation

node-webrtc License Join the chat at https://gitter.im/aisouard/node-webrtc Build Status Build Status

Native implementation of the W3C WebRTC specification for Node, using the Google's WebRTC native library.

Installation

$ npm install --save aisouard/node-webrtc

Usage

const RTCPeerConnection = require('webrtc').RTCPeerConnection;

const config = {
  iceServers: [
    { url: "stun:stun.l.google.com:19302" }
  ]
};

const options = {
  optional: [
    { DtlsSrtpKeyAgreement: true },
    { RtpDataChannels: true }
  ]
};

let pc = new RTCPeerConnection(config, options);

Contributing

Feel free to open an issue if you wish a bug to be fixed, to discuss a new feature or to ask a question. I'm open to pull requests, as long as your modifications are working on the three major OS (Windows, macOS and Linux), including tests, of course.

Don't forget to put your name and e-mail address inside the AUTHORS file! You can also reach me on Twitter for further discussion.

License

Apache License 2.0 © Axel Isouard