yocontra / rtc-everywhere

Cross-everything WebRTC mega-project
http://rtc.works
MIT License
651 stars 40 forks source link

Node.js v5.1.1 not supported? #10

Closed silverbucket closed 8 years ago

silverbucket commented 8 years ago

Trying this module out, it appears I can't get past initialization:

var rtc = require('rtc-everywhere')();

if (rtc.supported === false) {
  console.error(rtc.platform + ' platform not supported!');
  process.exit(1);
}

console.log(rtc);

var pc = new rtc.RTCPeerConnection();
pc.createOffer(function (offer) {
  console.log("offer: ", offer);
});
$ node service.js
node platform not supported!

If I skip the check, and do a console.log on the rtc object:

{ platform: 'node',
  supported: false,
  getUserMedia: [Function],
  RTCPeerConnection: undefined,
  RTCSessionDescription: undefined,
  RTCIceCandidate: undefined,
  attachStream: [Function] }

Am I doing something wrong here? Right now I'm just trying to generate an offer, nothing else. No signalling or anything.

$ node -v 
v5.1.1
RangerMauve commented 8 years ago

Did you do a npm install wrtc and ensure that that's all set up?

yocontra commented 8 years ago

Install the wrtc module.

I'll leave this open as a reminder that I need to create more detailed docs for each platform.