I am trying to get the WebRTC PeerConnection client on ubuntu to work with nodejs.
First I tried wrtc( https://github.com/js-platform/node-webrtc ). I manage to start the client, but I can not get the data stream. I noticed that RTCPeerConnection / PeerConnection on this module has different functions / implementation than when I run inside chrome. So I went looking for another peerConnection nodejs node.
I tried:
https://github.com/Rantanen/node-peerconnection
An already compiled version throws an error: _ZN6webrtc17BitrateController23CreateBitrateControllerEv
I decided that for proper operation I had to assemble a peerconnection on my machine.
I watched http://www.webrtc.org/reference/getting-started and compiled webrtc in our catalog /home/myuser/.webrtc/. I have one /home/myuser/.webrtc/trunk/out/(Debug/Release). I have an executable file peerconnection_client.
Then I cloned: https://github.com/santiago/node-peerconnection (another implementation, with the make file). When I try to run makefile ( make WEBRTC_ROOT_PATH=/home/myuser/.webrtc/trunk) I get an error message:
src/node_peer_connection_client.h:9:18: fatal error: node.h: No such file or directory
include <node.h>
I have /usr/include/nodejs(and a /usr/include/nodesymbolic link). I noticed that there is an internal src ( /usr/include/node/src/node.h) inside .
Other things I've tried:
https://github.com/js-platform/node-webrtc
https://github.com/Raynos/peer-connection
Basically, I am trying to get the PeerConnection client that was compiled on my machine to work with nodejs.
Any help would be appreciated;) Thanks