Can WebRTC.io server-side (nodejs) access the stream?

My plan is to transfer voice from the browser to the server (which would be equal) in WebRTC:

I am making a nodejs server and client with webrtc.io, as in the following link: https://github.com/webRTC/webRTC.io

Since webRTC.io has a nodejs module, and (as I understand it) claims that this is a port version of WebRTC in NodeJS, can the server do something like this ?:

 rtc.on('add remote stream', function(stream){
    // show the remote video
    rtc.attachStream(stream, 'remote');
  });

I mean, can the server side of WebRTC.IO be started when creating a remote stream? how would that be equal in a P2P connection?

Also, I assume that I can access the RTCPeerConnection on the server side and then access the stream.

and

webRTC.on('*', function(){
    console.log("*");
});

never starts. any reason?

+4

All Articles