after having worked on App for chatting with SimpleWebRTC for about a month, which was functioning normally, however, 2 days ago all of the sudden when 2 or more peers connect to the same room after a couple of seconds the following is printed out on the console and there is no more connection between the peers. I just don't know what happened given the fact that the code has not changed at all.
SimpleWebRTC event: iceConnectionStateChange Event {isTrusted: true, type:
"iceconnectionstatechange", target: RTCPeerConnection, currentTarget:
RTCPeerConnection, eventPhase: 2, …} simplewebrtc.bundle.js:15106
SimpleWebRTC event: peerStreamRemoved Peer {id: "klFvEzxX4jTOTrTTInom",
parent: WebRTC, type: "video", oneway: false, sharemyscreen: false, …}
SimpleWebRTC event: channelClose RTCDataChannel {label: "simplewebrtc",
ordered: true, maxRetransmitTime: 65535, maxRetransmits: 65535, protocol:
"", …} Event {isTrusted: true, type: "close", target: RTCDataChannel,
currentTarget: RTCDataChannel, eventPhase: 2, …}
And this happen overnight. The code was not changed at all it just happening automatically. Any idea what has happed and how to fix this problem ?
So far I have tried to completely remove the video and audio. However, the same problem still occurs. I have also tried to access other stun server but sadly couldn't find any active besides the ones from google i.e "stun:stun.l.google.com:19302?transport=udp"
.
This is how the SimpleWebRTC
is instansiated
const webrtc = new SimpleWebRTC({
// the id/element dom element that will hold "our" video
// localVideoEl: 'local-video',
localVideoEl: 'local-video',
// the id/element dom element that will hold remote videos
remoteVideosEl: 'remote-videos',
// immediately ask for camera access
autoRequestMedia: true,
debug: true,
detectSpeakingEvents: false,
autoAdjustMic: true,
});
It looks like the sandbox server (which has not been maintained for ages) is crashing. Run your own by specifying url in the constructor.