Comments (13)
This project looks great in utube tutorial because author's phones and chrome pages are P2Pable. It didn't do anything about ICE(Interactive Connectivity Establishment), which needs stun and turn servers.
In network, to find p2p connection is not easy in all cases.
In some cases, you just lucky enough to build p2p connection perfectly.
In other cases, you may need stun to find the way to build p2p connection.
If you are super unlucky, stun is not working, you are facing a symmetric NAT. It is very hard to make p2p connection when both sides of users are using symmetric NAT, so you need a central server do relay, which is turn server.
idk if I make it clear, but if u rly wanna make it work, you need
- buy one or more server(s).
- make it a signal server.
- buy one or two(optional) domain name, and bind your domain name and server IP address.
- make it a coTurn server by tutorial.
- remember the username and password that you stored in configuration file of coTurn.
- use Peer-js and put the username & password in 'username' & 'credential'.
- test and fix.
IMPORTANT!!! These steps is for projects that work well when peers(users) in the same network(using same wifi).
Since I think I have provided enough information so that people can solve the problems mentioned in this issue, I will most likely not reply again.
from zoom-clone-with-webrtc.
i cant reproduce this bug in my chrome browser, everything seems works properly.
try with your phone and web browser.
Hi, I do reproduced this error when I use two devices in diff network environment. Use TURN server could solve this problem through my experience.
Some pairs of peers in the world is hided behind NAT, so you need use STUN server to do NAT traversal. If you have a symmetric NAT(the worst case), which is impossible to find a method to connect two peers directly, you even need a TURN server to relay the data(not P2P at all).
You can use coTurn in GitHub, and build your STUN & TURN server quickly. Hope this information is helpful.
from zoom-clone-with-webrtc.
@avinashboy
Basically, you just need to install coTurn to your server (tons of tutorials about it are online), or you can just use existing public turn servers, and add one more parameter when you launch the Peer object in js(u can check my repository btw).
List of public stun servers
const myPeer = new Peer(undefined, { config: { iceServers: [ { url: "turn:stun.****.com:****", username: "****", credential: "****", }, ], }, host: "/", port: "", secure: true, });
from zoom-clone-with-webrtc.
from zoom-clone-with-webrtc.
here is the repository https://github.com/avinashboy/video-chat. please tell me what is the error? I can't find it and here is the link of the site https://baby-kill.herokuapp.com/
from zoom-clone-with-webrtc.
i cant reproduce this bug in my chrome browser, everything seems works properly.
from zoom-clone-with-webrtc.
i cant reproduce this bug in my chrome browser, everything seems works properly.
try with your phone and web browser.
from zoom-clone-with-webrtc.
hey Mike-7777777 did u know about RSA using with js
from zoom-clone-with-webrtc.
i cant reproduce this bug in my chrome browser, everything seems works properly.
try with your phone and web browser.
Hi, I do reproduced this error when I use two devices in diff network environment. Use TURN server could solve this problem through my experience.
Some pairs of peers in the world is hided behind NAT, so you need use STUN server to do NAT traversal. If you have a symmetric NAT(the worst case), which is impossible to find a method to connect two peers directly, you even need a TURN server to relay the data(not P2P at all).
You can use coTurn in GitHub, and build your STUN & TURN server quickly. Hope this information is helpful.
Could you show me some documentation how to use and how to connect group of people in same call like that
from zoom-clone-with-webrtc.
I get this error. I change this part
const myPeer = new Peer(undefined, { config: { iceServers: [ { url: "turn:stun..com:", username: "", credential: "", }, ], }, host: "/", port: "", secure: true, });
How can I get a username and credential?
from zoom-clone-with-webrtc.
@avinashboy i see same error in default project
from zoom-clone-with-webrtc.
Seriously I don't get it....in youtube tutorial working fine but when we try by ourself it not working at all....😞😓
from zoom-clone-with-webrtc.
Thank you Mike-7777777
from zoom-clone-with-webrtc.
Related Issues (20)
- Server.js not working
- \
- The peerjs is not connecting and is showing refused to connect????? HOT 2
- How do i fix this error? Uncaught TypeError: navigator.mediaDevices is undefined ? HOT 1
- Run on the Real Server HOT 1
- it is giving me an error on the socket.to(roomId).broadcast.emit('user-connected', userId) line of server.js that emit isn't defined why is that HOT 4
- it wont work on insecure ports anymore this whole thing needs updating to use secure HOT 7
- How to run this HOT 2
- Not working
- Rejected connection to Peer.js
- Hosting the Server
- Is there a way to make a single room only?
- navigator.mediaDevices is undefined HOT 1
- Cannot read properties of undefined (reading 'getUserMedia')
- Recording room video/audio
- Docker Request
- Uncaught (in promise) AxiosError localhost:3001/diets/diets:1 Failed to load resource: net::ERR_CONNECTION_REFUSED HOT 1
- Video is not stable for more than 4 users
- Cannot Host this on the server.
- Server.js error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoom-clone-with-webrtc.