My plan is to stream voice from browser to the server (which would be Peer) in WebRTC :
I am making a nodejs server and client with webrtc.io like in the following link: https://github.com/webRTC/webRTC.io
Since webRTC.io has a nodejs module, and (as I understood) claims to be a ported version of WebRTC in NodeJS, can the server do something like ?:
rtc.on('add remote stream', function(stream){
// show the remote video
rtc.attachStream(stream, 'remote');
});
I mean, can the WebRTC.IO server side be triggered when a remote stream is created? as it'd be a peer in the P2P connection?
Also, I guess I could access RTCPeerConnection in the server side, then access the stream.
also
webRTC.on('*', function(){
console.log("*");
});
is never triggered. any reason ?