WebRTC error... undefined

1,197 views
Skip to first unread message

home...@gmail.com

unread,
Jul 28, 2020, 3:06:56 AM7/28/20
to meetecho-janus

Have a nice day everyone!
I installed Janus in /opt/janus/ and nginx. I copied server demo tests in /var/www/html/. I struggle to pass Echo Test. I get error "WebRTC error... undefined".
I created reports about my server configuration (just removed part of my IP address).
Here is what I get when I run /opt/janus/bin/janus in Terminal
https://pastebin.com/QuCWvhEQ
My nginx configuration from /etc/nginx/sites-available/default
location /opt/janus {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header Host $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_set_header Host $host;
         proxy_redirect off;
                proxy_pass http://192.168..:8088/janus;
        try_files $uri $uri/ =404;
    }
I tried to change janus.js file variable server to var server = "/opt/janus" and got another error "API call failed: [object Object]".
Could anyone help me how to pass Echo Test?

haesize

unread,
Jul 28, 2020, 10:55:23 AM7/28/20
to meetecho-janus
Hi, in nginx, this config is enough
server {
    listen 443;
    server_name  default;
    ssl on;
    ssl_certificate         /etc/nginx/ssl/file.crt;
    ssl_certificate_key     /etc/nginx/ssl/file.key;
    
    index index.html index.htm;
    
    location / {
        root /var/www/html;
        try_files $uri $uri/ =404;
    }
}


вторник, 28 июля 2020 г. в 10:06:56 UTC+3, home...@gmail.com:

home...@gmail.com

unread,
Jul 29, 2020, 5:19:39 AM7/29/20
to meetecho-janus
I couldn't restart nginx at all after your configuration
[....] Restarting nginx (via systemctl): nginx.serviceJob for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
 failed!

haesize

unread,
Jul 29, 2020, 5:56:00 AM7/29/20
to meetecho-janus

server {
    listen 80;
    server_name  default;
    
    index index.html index.htm;
    
    location / {
        root /var/www/html;
        try_files $uri $uri/ =404;
    }
}
среда, 29 июля 2020 г. в 12:19:39 UTC+3, home...@gmail.com:

home...@gmail.com

unread,
Jul 29, 2020, 6:10:21 AM7/29/20
to meetecho-janus
changed!
still error in browser WebRTC error... undefined

haesize

unread,
Jul 29, 2020, 6:42:37 AM7/29/20
to meetecho-janus
which browser? to which address is the Echo Test trying to connect after pressing the start button?

среда, 29 июля 2020 г. в 13:10:21 UTC+3, home...@gmail.com:
Message has been deleted
Message has been deleted

Lorenzo Miniero

unread,
Jul 29, 2020, 8:20:20 AM7/29/20
to meetecho-janus
You need HTTPS to do a getUserMedia: plain http will obviously yield that error (unless you use localhost). I don't think you've been following the instructions you've been given.

Lorenzoo


Il giorno mercoledì 29 luglio 2020 14:10:39 UTC+2, home...@gmail.com ha scritto:
firefox
this address,
you may check it by your own during this day

home...@gmail.com

unread,
Jul 29, 2020, 10:47:35 AM7/29/20
to meetecho-janus
Finally I passed Echo Test. Here what I did wrong. I used http://192.../html/echotest.html
instead of http://localhost/html/echotest.html because I thought they are equal. Thank you all for helping.
P.S. Please, Lorenzoo, delete my IP from the message, however leave your answer it can be useful for others.
Reply all
Reply to author
Forward
0 new messages