WebRTC One-to-One video sharing using Socket.io / Demo
This WebRTC Experiment is using socket.io over node.js for signalig.
=
Use your own socket.io implementation!
There is a built-in Socket.io over Node.js implementation that can be used in each and every WebRTC Experiment.
// openSignalingChannel or openSocket!
openSignalingChannel: function(config) {
var SIGNALING_SERVER = 'http://webrtc-signaling.jit.su:80/';
var channel = config.channel || this.channel || 'default-channel';
var sender = Math.round(Math.random() * 60535) + 5000;
io.connect(SIGNALING_SERVER).emit('new-channel', {
channel: channel,
sender : sender
});
var socket = io.connect(SIGNALING_SERVER + channel);
socket.channel = channel;
socket.on('connect', function () {
if (config.callback) config.callback(socket);
});
socket.send = function (message) {
socket.emit('message', {
sender: sender,
data : message
});
};
socket.on('message', config.onmessage);
}
=
Browser Support
This One-to-one WebRTC video chat using socket.io experiment works fine on following web-browsers:
| Browser | Support |
|---|---|
| Firefox | Stable / Aurora / Nightly |
| Google Chrome | Stable / Canary / Beta / Dev |
| Android | Chrome Beta |
=
License
WebRTC one-to-one video sharing using socket.io is released under MIT licence . Copyright (c) 2013 Muaz Khan.