Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

WebRTC not working

Open jcardila opened this issue 10 years ago • 52 comments

I can't get webrtc calls to work, tried on own server and on RC demo server and couldn't get them to work. Both pass the webrtc test except for IPv6 and a warning in Reflexive connectivity. Tried connected in the same network and on different networks.

jcardila avatar Feb 03 '16 19:02 jcardila

I have experienced the same thing with the demo server, only since the CPU prob. @rodrigok Do you think it might be related to this change? Thx

https://github.com/RocketChat/Rocket.Chat/commit/cd829c3f92ab6ef2bca8270afbfddadf2ad7eacc

Sing-Li avatar Feb 03 '16 19:02 Sing-Li

@Sing-Li probably yes, we need some time to improve that

rodrigok avatar Feb 03 '16 20:02 rodrigok

Indeed, since i updated to 0.17.0 WebRTC does not seem to work.

I am aware that the webRTC functions are not really a priority at the moment. But if there would be a possibility to include a settings button to change voice activation levels, or include a utilize push to talk button, that would be greatly appreciated.

ma-karai avatar Feb 11 '16 09:02 ma-karai

Same here. WebRTC problems in 0.17.0 @bott0r what was the previous version that you used when WebRTC worked?

realAkhmed avatar Feb 11 '16 19:02 realAkhmed

@realAkhmed for me it was 0.15 or something. I am currently on the developer version.

ma-karai avatar Feb 26 '16 10:02 ma-karai

Im having the same issues... Broken since Feb? I take it no one actually uses this to talk to people then

xenithorb avatar May 17 '16 13:05 xenithorb

Yes, it is broken (which is annoying). It does not seems to be tested when releases are done.

thomas-mangin avatar May 17 '16 13:05 thomas-mangin

Are there plans to get this working again? Or drop the feature advertising from the home page?

I large part of why I spent the time to deploy this was to do WebRTC calling...

xenithorb avatar May 17 '16 13:05 xenithorb

Same here - been playing around trying to get this working for a day or two now - only to find out its still broken. What version is the demo running as it works on there?

jeromeza avatar May 17 '16 19:05 jeromeza

Perhaps this will help some people:

xenithorb 2:39 PM @frdmn: I'm sorry, but I just realized that WebRTC audio does work between two of the reference electron clients. It seems my earlier failures to get it to work were due to doing LAN->LAN testing with a server that existed on the public internet. We could not however get video to work. Electron also needs to be able to anchor to an audio device, like firefox/chrome. Otherwise it worked really well 🙂 Perhaps the information warning should include something about not trying to contact in-LAN other clients while using an external server? Perhaps the default TURN/STUN settings mess the ability to do that up?


I wrote that in #support on the demo server earlier.

xenithorb avatar May 17 '16 19:05 xenithorb

I still can't get audio / video to work.

My server is external from my network. Clients are also on different networks.

I just get call popups, answer and nothing happens.

jeromeza avatar May 17 '16 19:05 jeromeza

Same here - all clients and the server are on real word IP (ie: no NAT anywhere). The server is however firewalled only allowing port 443 (the TURN/STUN server is on another IP).

thomas-mangin avatar May 17 '16 20:05 thomas-mangin

0.32 works for me.

thomas-mangin avatar Jun 06 '16 16:06 thomas-mangin

we can't seem to get this working at all - we're running 0.33 in docker . If I call a friend, nothing happens. if he calls me, the popup appears - but I click accept nothing happens

image

jmls avatar Jun 10 '16 12:06 jmls

It has all the characteristics of a NAT issue. Make sure STUN is correctly setup.

thomas-mangin avatar Jun 10 '16 13:06 thomas-mangin

ah - ok - do we need to set up our own STUN server then ?

jmls avatar Jun 10 '16 13:06 jmls

Thing is, I've never been able to get "Reflexive connectivity" to work tested by http://test.webrtc.org

That seems to be causing some issues, other issues like when a call doesn't work, the other party isn't really notified if their client thinks they're in a call are clearly event-driven bugs of the product. There are a lot of errors here, and it's only compounded by trying to be compatible with many browsers (Which should be commended, I'm just saying though)

On Linux, with the reference client, I am able to make calls (and do frequently), but only works on occasion from recent versions of chromium, and doesn't seem to work at all on Firefox.

Screen sharing is a really odd one, too. In this case it doesn't work in the reference client because they haven't yet figured out how to get the extension to work in Electron. Firefox doesn't show a video feed because the selector never appears. And Chromium you can select the viewport to share, and that works to include an image of your desktop where you would expect video to be, but the other end only sees black.

Video is the same way, I imagine for the same reasons. Black on the other end.

xenithorb avatar Jun 10 '16 13:06 xenithorb

@jmls

root@stun:~# dpkg -l | grep -i turn
ii  resiprocate-turn-server             1:1.9.7-4~ubuntu14.04.1          amd64        reSIProcate SIP stack - ICE/TURN server

thomas-mangin avatar Jun 10 '16 14:06 thomas-mangin

@thomas-mangin thanks for the info - However, I would have thought that if this were needed it would have been supplied and installed on the official rocketchat docker image though .. or am I being thick ?

jmls avatar Jun 10 '16 15:06 jmls

I'm personally targeting coturn through an ansible role I'm in the process of writing

xenithorb avatar Jun 10 '16 15:06 xenithorb