突然的连接丢失而没有任何错误消息



在使用应用程序与Simple Webrtc聊天大约一个月后,正常运行,但是2天前,所有突然的突然当2个或更多时几秒钟后,同伴连接到同一房间,以下在控制台上打印出来,并且对等式之间不再有连接。我只是不知道鉴于代码根本没有更改的事实。

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, …}

这在一夜之间发生。该代码根本没有自动发生。知道什么发生了什么以及如何解决此问题?

到目前为止,我已经尝试完全删除视频和音频。但是,仍然存在同样的问题。我还尝试访问其他眩晕服务器,但可悲的是,除了Google的 "stun:stun.l.google.com:19302?transport=udp"外,还找不到任何活动。

这就是SimpleWebRTC的插入方式

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,
  });

看起来像是沙盒服务器(尚未维护了很长时间(正在崩溃。通过在构造函数中指定URL来运行自己的运行。

相关内容

最新更新