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

WebRTC buttons not doing anything

Open haceru opened this issue 10 years ago • 11 comments

Hello,

Most likely there is something I am missing, but please can you guide me on how to setup the WebRTC ? When in Direct Message for example, the buttons show up OK, but when I click on them nothing happens. I have checked the browser compatibiliy and settings with the online tool from the Wiki post, everything passed as described (tried on different computers, different browsers)

The Rocket.Chat instance is running behind a firewall; are there any extra ports requirements besides the main app port ?

Any suggestions would be greatly appreciated

Thank you

haceru avatar Jan 06 '16 00:01 haceru

I have same issues, WebRTC doesnt work..

IQ2022 avatar Jan 06 '16 18:01 IQ2022

To be on the safe side, could you join https://demo.rocket.chat and give it a try on our instance? @IQ2022 is your instance also behind a firewall?

marceloschmidt avatar Jan 07 '16 11:01 marceloschmidt

I have just tested the demo instance, with username edemos.online and everything works OK. Since you mentioned the demo instance, what driver is it using? The standard one or the webrtc-ib one?

haceru avatar Jan 07 '16 13:01 haceru

I found the answer ....

740dbe125ddc1d6ed03fd91bbf0e5a15353024b3.js?meteor_js_resource=true:290 getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

740dbe125ddc1d6ed03fd91bbf0e5a15353024b3.js?meteor_js_resource=true:290 NavigatorUserMediaError {}constraintName: ""message: "Only secure origins are allowed (see: https://goo.gl/Y0ZkNV)."name: "PermissionDeniedError"proto: NavigatorUserMediaErrorconstraintName:

Your instance runs on a secure connection while mine is not. I guess this solves the mistery, but I am not sure how this will affect further development of the WebRTC feature of Rocket Chat

While researching further, there seems to be a free alternative to paid SSL, even though in Beta testing, and at this time only available for Apache .... https://letsencrypt.org/ Nginx coming soon, so will have to wait and see

haceru avatar Jan 07 '16 18:01 haceru

As an update, I managed to install the https://letsencrypt.org/ client on a NGINX server and thus my Rocket.Chat instance runs on a secure site, with WebRTC fully functional. I suppose you can update the Wiki to let others know about the HTTPS requirement and the free workaround (even though still in public beta)

haceru avatar Jan 13 '16 05:01 haceru

To be done as part of #933

engelgabriel avatar Jan 27 '16 15:01 engelgabriel

any wiki's on how to enable https (via NGIX) on dockers?

IQ2022 avatar Jan 27 '16 16:01 IQ2022

@haceru in the wiki it is told that you need to use https and ssl for the best results!!

@IQ2022 read the wiki in how to install ssl on nginx!

Here it is Docker Ubuntu with Nginx SSL and Hubot

x5engine avatar Feb 20 '16 18:02 x5engine

@capensisma I am not a native English speaker, but to my knowledge "best results" is not similar to "only". If you read the WebRTC documentation, it says that it "only" works on https and ssl, not "gives best results"

haceru avatar Feb 20 '16 21:02 haceru

@haceru bro it works on none http but you will get a lot of problems like the webrtc things or on other things... you can try running it on your localhost and see!

Anyway, anyone should use HTTPS to have a secure app with the best results.

x5engine avatar Feb 20 '16 23:02 x5engine

closing in favor of #933 lets track webrtc progress there.

geekgonecrazy avatar Oct 27 '16 19:10 geekgonecrazy