-
-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No connection when hosted, but locally ok #911
Comments
This is usually because of ice candidates, check in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: