I am new to webRTC, and please bear with me if my question is too stupid..
I am working with node and using socket io. I want to add webrtc element to my app, so i am thinking if it is possible to stream mediaStream blob via websocket to server, and let server emit the stream to all other connected sockets in a room??
My approach is get the mediaStream blob first
var audioStream = window.URL ? window.URL.createObjectURL(stream) : stream;
and then send via socket
socket.emit('audio',audioStream);
Obviously it doesnt work like this way, otherwise it will be too easy. I just want to know if this way is possible, because i know peerconnection between two browsers uses websocket, so why not do it thru server? Any idea or suggestion is highly weclomed.