-
Notifications
You must be signed in to change notification settings - Fork 480
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
Can not answer the call when new user join room #18
Comments
Have you found the solution? I have the same problem. |
Change this in socket.on("user-connected", (userId) => {
setTimeout(function () {
connectToNewUser(userId, stream);
}, 1000);
}); with socket.on('user-connected', userId => {
connectToNewUser(userId, stream)
}) |
This still does not work |
No, the script.js change does not do anything. I do not have a solution. |
just move user-connected and call event out of promise.. final code is as following..
|
I had the same problem I solved it by making the Peer constructor empty var peer=new Peer(undefined) |
Yes this works also 👍 |
i am following their tutorial at this point https://youtu.be/ZVznzY7EjuY?t=6023
Before that, everything worked perfectly, but i can not answer the call when new user join room and their is no new video tag appended in the video grid.
This is my
server.js
this is my
script.js
as i tried to
console.log(userMediaStream)
it returned nothing in this code blocki dont know how to deal with it, please tell me why, thank you so much 👍
The text was updated successfully, but these errors were encountered: