Getting WebRTC error... "getUserMedia not available" with reverse proxy setup

44 views
Skip to first unread message

Mayank Aggarwal

unread,
Nov 29, 2022, 2:06:21 AM11/29/22
to meetecho-janus
Hi,

I have setup a server with janus media gateway and I am trying to run the videoroom demo. I am getting WebRTC error... "getUserMedia not available" even when I have setup reverse proxy as described here https://janus.conf.meetecho.com/docs/deploy.html

In web application
var server = "/janus";
In apache config:

ProxyRequests Off
ProxyVia Off
ProxyPass /janus http://127.0.0.1:8088/janus retry=0
ProxyPassReverse /janus http://127.0.0.1:8088/janus

I know that getUserMedia works with HTTPS, but it also works with localhost right (with HTTP)? I am using this url - http://10.6.245.190/myapp/index.html
Can someone point out what I am missing here?

Thanks,
Mayank  

Lorenzo Miniero

unread,
Nov 29, 2022, 3:34:10 AM11/29/22
to meetecho-janus
You can only do getUserMedia on https, and your page is on http.

L.

Mayank Aggarwal

unread,
Nov 29, 2022, 10:03:38 AM11/29/22
to Lorenzo Miniero, meetecho-janus
Hi Lorenzo, 

Thanks for the response. Could you please tell me if this changed recently? I was able to do getUserMedia with HTTP 3 years ago. 

Thanks,
Mayank

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/bcaa6420-b760-48fa-83e8-c641b4df1011n%40googlegroups.com.

Lorenzo Miniero

unread,
Nov 29, 2022, 10:04:32 AM11/29/22
to meetecho-janus
It's been like that for a very long time. You can only use plain HTTP + gUM on localhost.

L.

Mayank Aggarwal

unread,
Nov 29, 2022, 6:06:16 PM11/29/22
to Lorenzo Miniero, meetecho-janus
Hi Lorenzo,

I was able to fix the issue by adding the hostname of my server to the whitelist in chrome flags (add to whiltelist by opening chrome://flags and search for unsafely-treat-insecure-origin-as-secure.) Sharing this for the bigger audience here. 


Thanks,
Mayank



Reply all
Reply to author
Forward
0 new messages