我正在创建一个 webRTC 视频聊天,它在从 firefox 发起呼叫时向呼叫者显示所有活动成员,而接收者正在使用 chrome 显示此错误“未捕获(承诺)DOMException:无法在‘RTCPeerConnection’上执行‘addIceCandidate’:错误处理 ICE 候选人”。当从 firefox 发起呼叫并且接收者使用 firefox 时,我收到两个错误 Invalidstate: cannot add ICECandidate when there is no remote SDP and ICE failed, add a STUN and see about:webrtc
我不知道我在哪里犯了错误
/ define all data here
var usersOnline,id,currentCaller,room,caller,localUser,media,memberInfo;
// All subscribed members.
var users = [];
var token = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
// create random user id
var userId = Math.random().toString(36).substring(2, 15);
// create random username
var username = token;
// authonticating user
var currentUser = …Run Code Online (Sandbox Code Playgroud)