Open tianhaoz95 opened 7 years ago
I want the page to join a room automatically.
I am using reactjs
I did this:
componentDidMount() { var thisObj = this; this.webrtc = new SimpleWebRTC({ ... }); this.webrtc.on("readyToCall", function() {thisObj.webrtc.joinRoom(...)}); }
and I used another page to create the room.
However, it did not join the room automatically. Any idea what should I do instead?
Actually not sure if it helps you or not, but calling joinRoom on both the page work for me. Never used createRoom practically.
I want the page to join a room automatically.
I am using reactjs
I did this:
componentDidMount() { var thisObj = this; this.webrtc = new SimpleWebRTC({ ... }); this.webrtc.on("readyToCall", function() {thisObj.webrtc.joinRoom(...)}); }
and I used another page to create the room.
However, it did not join the room automatically. Any idea what should I do instead?