CleverProgrammers / nodejs-zoom-clone

848 stars 483 forks source link

Cannot see new user video #40

Open nairobiii opened 3 years ago

nairobiii commented 3 years ago

the users are able to connect as the chat box is active but they can neither see each other or hear them.

chirag74 commented 3 years ago

same problem

chirag74 commented 3 years ago

i'm getting

Kamrang2004 commented 3 years ago

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

chirag74 commented 3 years ago

still not getting others video and they not getting my video

Aztech-42 commented 3 years ago

change port to 3030

Indu-Chandana commented 3 years ago

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

danieldwipaska commented 2 years ago

@Indu-Chandana it works. thanks but do you know why we should use setTimeout function?

anujmittal2308 commented 2 years ago

https://stackoverflow.com/questions/72003682/cant-fix-expresspeerserver-is-not-a-function-in-server-js

SoumyadeepOSD commented 1 year ago

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 😀

AkshiMehra commented 1 year ago

Do you now know the reason? It really worked. @danieldwipaska