I'm building a video chat website and i got stuck on the video steaming. The Local video is working but i can't get the peer to peer connection between them. I've checked out some examples on the web but those are not where i'm looking for. because they only work when you have a local stream.
I've a page for this chat so no rooms are necessary the user needs to connect immediately but only with text chat and users who share their webcam. 16 users can share their webcam and 'unlimited' users can join the page and see those 16 users and chat in text. the text chat goes via socket.io on a node.js server.
is it possible to realize this and if it is can someone please help me out on this or give me a useful example
Edit 1: My code so far
rtc.connect('ws://127.0.0.1:3000');
function joinVideo(){
console.log('test');
rtc.createStream({"video": true, "audio":false}, function(stream){
// get local stream for manipulation
rtc.attachStream(stream, 'local');
});
}
rtc.on('add remote stream', function(stream){
// show the remote video
rtc.attachStream(stream, 'remote');
});
Thanks anyway, Stefan