You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is usually because of ice candidates, check in chrome://webrtc-internals/ the ice-matrix and observe how and which ones connect, local peers are different than remote ones.
Im getting this error when trying to connect to another peer on another network. Running locally or on the same network everything is fine
config is like this
const config = { iceServers: [{ urls: "stun:stun.l.google.com:19302" }] }
and the rest
` const handlePeer = (peer) => {
peer.on('stream', (currentStream) => {
userVideo.current && (userVideo.current.srcObject = currentStream);
console.log('on stream', currentStream);
});
peer.on('error', () => leaveCall(true));
peer.on('close', () => leaveCall());
};
const answerCall = useCallback(() => {
setCallPending(true);
}, [call.from, call.signal, stream, handlePeer])
const callUser = (id) => {
const peer = new window.SimplePeer({ initiator: true, trickle: false, stream, config });
};`
The text was updated successfully, but these errors were encountered: