Open nairobiii opened 3 years ago
same problem
i'm getting
Duplicate of #40 guys just change the const peer ....
to this
const peer = new Peer(undefined, { host: "peerjs-server.herokuapp.com", secure: true, port: 443, });
still not getting others video and they not getting my video
change port to 3030
try and replace socket.on('user-connected',(userId)=> { console.log(userId) connectToNewUser(userId,stream); }) with socket.on('user-connected', userId => { // user is joining` setTimeout(() => { // user joined connectToNewUser(userId, stream) }, 1000) })
@Indu-Chandana it works. thanks but do you know why we should use setTimeout function?
try and replace socket.on('user-connected',(userId)=> { console.log(userId) connectToNewUser(userId,stream); }) with socket.on('user-connected', userId => { // user is joining` setTimeout(() => { // user joined connectToNewUser(userId, stream) }, 1000) })
Thanks @Indu-Chandana , you cured my frustation 😀
Do you now know the reason? It really worked. @danieldwipaska
the users are able to connect as the chat box is active but they can neither see each other or hear them.