These are chat archives for andyet/SimpleWebRTC

25th
Jun 2017
Christoffer Oleander Nielsen
@Oleander2911
Jun 25 2017 18:12
Hey guys, i have added the html and js, but it does not seem to work? I get my local feed, but when joining the same room nothing happens.
I have had some wierd stuff happen that after debugging for a long time and sometimes doing nothing randomly a remote stream is added(is the same as the local since i test locally) but this is very unreliable since this happens not very often.
Any suggestions?
LuckyCyborg
@LuckyCyborg
Jun 25 2017 18:13
Use your own signaling server, not the demos one.
Christoffer Oleander Nielsen
@Oleander2911
Jun 25 2017 18:14
Okay, that will fix it most likely?
@LuckyCyborg :)
LuckyCyborg
@LuckyCyborg
Jun 25 2017 18:16

You are kidding? You really believe that you got a second Skype just adding some javascript in page?

The secret sauce is on server, and your STUN/TURN servers.

BTW, those things runs in dedicated servers, get at least a VPS for playing with...
Christoffer Oleander Nielsen
@Oleander2911
Jun 25 2017 18:17
I am not kidding, i never stated that ? Wth... take it easy, based on what you could read on their page the demo servers could be used fine for development... i do run a VPS, and was also gonna have my own for production...
LuckyCyborg
@LuckyCyborg
Jun 25 2017 18:18
If you have a VPS, you are all check.
Christoffer Oleander Nielsen
@Oleander2911
Jun 25 2017 18:18
Great.
LuckyCyborg
@LuckyCyborg
Jun 25 2017 18:19
Use the SWRTC signaling server for the guys to find each one, and I suggest you to use CoTURN for data transfer.
Be aware that the second thing do a really huge data traffic, streaming videos eat like a hog.
Ask first your hosting if permit streaming video for <insert here your estimated number of users>, before starting.
Those guys can became really angry if you eat all their bandwidth.
Bear in mind that TURN's traffic consuming is double than on video streaming case, as one upload data and the other download it.
LuckyCyborg
@LuckyCyborg
Jun 25 2017 18:25
Also, consider that a video channel needs 5mbps for up, same for down. For a 100mbps link on your VPS, you get saturation for 10 simultaneous clients.
LuckyCyborg
@LuckyCyborg
Jun 25 2017 18:37

That's a serious problem for, well... any serious implementation of a WebRTC based business. ;)

I seen ten times guys writing cool internal Skypes for their forums, only to getting them off line for "bandwidth exceeded" on the next week. :shipit:

Christoffer Oleander Nielsen
@Oleander2911
Jun 25 2017 21:21
Okay, i just thought that these servers was used to establish a p2p connection, and then they weren’t used anymore, i guess not :) @LuckyCyborg
LuckyCyborg
@LuckyCyborg
Jun 25 2017 21:29

The TURN servers aren't used when both computers who talks are shown directly in the Internet. Aka you have public IP on the computer.

That was valid years ago, but today even at home we have shiny local networks behind routers, or some internet providers "hide" you in the back of their routers, from a wide range of reasons, usually claiming child protection, but I believe that usually some man in black from a three letters institution is a bit curious about what you do on-line.

In those cases, the single way is to deploy the video and audio streams over a TURN server.
LuckyCyborg
@LuckyCyborg
Jun 25 2017 21:34
BTW, the "servers used to establish a p2p connection" are the STUN ones. I.e. the SimpleWebRTC's signaling server. The TURNs are for media streaming.
Christoffer Oleander Nielsen
@Oleander2911
Jun 25 2017 21:35
Okay thanks for the explanation :)
LuckyCyborg
@LuckyCyborg
Jun 25 2017 21:35
No problem. Hope was useful. ;)
LuckyCyborg
@LuckyCyborg
Jun 25 2017 21:45

Long story short, a modest VPS is more than enough to handle a community with usually 1000 users on-line.

Give them video-chat over WebRTC and put the TURN in the same VPS, the you have the guarantee that you VPS would be put down in no time.

And do not trust the hosting providers stories about unlimited traffic at x.y.z bandwidth. They say that supposing that you do not consume more than 1% from resources.

IF you really manage to eat 100% from resources, and with video streaming is so easy, they would put your server down like a wounded horse. With no regrets.
That's WHY you do not see lots of sites like Youtube or Vimeo, also...
Is not the WebRTC fault, per se...
It is all about that the video streaming is freaking costly.
LuckyCyborg
@LuckyCyborg
Jun 25 2017 21:53
Oh, and avoid at all costs the tele-conference, aka groups. An 4 users group needs a whooping 16 streams through your TURN!
For every link combination possible.