1

I am making a video chat application using simplewebrtc. It is working fine with one call.After hanging up(webrtc.leaveRoom()) when I try to call again then it is not working.It is not executing webrtc.on('readyToCall', function() { console.log('Ready to call'); webrtc.joinRoom(room); });
So how can I ressolve this issue? Is there any issue with my old connection?

4

1 回答 1

0

我找到了解决方案。

我在 simplewebrtc 中进行了更改。我更改了文件 /node_modules/simplewebrtc/src/simplewebrtc.js。我只是从行中删除评论'force new connection': true。(我永远不会推荐这个)。

现在这条线看起来像socketio: { 'force new connection': true }并且它正在工作。

谢谢。

于 2017-11-01T09:12:00.417 回答