muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!

Home Page:https://www.webrtc-experiment.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facing issue on webrtc video conference using firebase

anasshahid26 opened this issue · comments

I am facing issues when I am using firebase for signaling and not giving any error just not showing other people streaming. Rooms are creating its also appears in firebase database but when I click to join room its not showing other streams just my face and also not showing any error here is my code:

openSocket: function (config) {
var channel = config.channel || location.href.replace(//|:|#|%|.|[|]/g, '');
var socket = new Firebase('https://confrtc-default-rtdb.firebaseio.com/' + channel);
socket.channel = channel;
socket.on('child_added', function (data) {
config.onmessage(data.val());
});
socket.send = function (data) {
this.push(data);
}
config.onopen && setTimeout(config.onopen, 1);
socket.onDisconnect().remove();

      return socket;
  },