Cannot run any of the tutorial examples

Hello,

First of all I’d like to thank the team of OpenVidu for the great efforts they are making.

I’ve been trying to get OpenVidu working on my local development machine but seems like I’m doing something wrong. I have tried at first on a Vagrant machine but no luck so I decide to run it on a separate Ubuntu VM machine to avoid any conflicts between the browser of the Host and the server on the guest.

I am trying now on Ubuntu 18.04 (VM) so I followed openvidu-hello-world guide for starting.

After running http-server and docker and head to http://127.0.0.1:8080 I get the expected result page of Hello World but when I click on JOIN button it displays a Javascript ALERT asking me to click OK to accept selfsigned certificate but when I click OK I get redirected to https://127.0.0.1:4443/accept-certificate which displays an error by the browser saying that this connection is not secured. When I click on proceed anyways it throws a 404 ERROR

What am missing here?

Thank you

It should work,

Can you open https://127.0.0.1:4443/ and show us an screenshot of the browser (including console)?

Credentials are

user=OPENVIDUAPP

pass=MY_SECRET

Regards

Hello, Micael

Thank you for your reply.

Here’s the request screenshot

It says require TLS but how to obtain that locally. I tried with a virtual nginx host that has a selfsigned SSL certificate and still does not work.

EDIT

I have tried it on multiple browsers. It only worked on Opera but not on other browsers (Firefox, Chrome). These other browsers display that the connection is not secured

Thank you

You have to use the URL https://127.0.0.1:4443/

I think the problem is you are using plain http instead of https.

Hello again Micael,

Thank you for your reply. I tried again from Vagrant specifying openvidu.publicurl and got it working. But Now I’m facing another issue with openvidu-gateroom. When I launch the app I get a black screen, no video and no audio. When click on Audio button or Video button I get the following (see image below)

NOTE: URL of the room is not secured

Thank you

Please use https and Chrome.

I’m now on Google Chrome. When I click Join, a Javascript alert pops up saying No connection to OpenVidu Server... (line 293 from app.js) when I click OK, I get the result in the following screenshot

Thank you

Then click in “advanced” and accept security exception for that URL.

In that way, you can come back to your app and all should work fine

I’ve tried but I get the same result: black screen

When I click on Video or Audio, I get the following exceptions:

Publisher.ts:120 Uncaught TypeError: Cannot read property 'getAudioTracks' of undefined
    at Publisher.publishAudio (Publisher.ts:120)
    at muteAudio (app.js:139)
    at HTMLButtonElement.onclick (VM154 :53)
Publisher.publishAudio @ Publisher.ts:120
muteAudio @ app.js:139
onclick @ VM154 :53
Publisher.ts:166 

Uncaught TypeError: Cannot read property 'getVideoTracks' of undefined
        at Publisher.publishVideo (Publisher.ts:166)
        at muteVideo (app.js:152)
        at HTMLButtonElement.onclick (VM155 :49)

What am I missing?

Thank you

Hello again,

Still cannot, it displays a black screen as in this answer (see screenshot)

Thank you

You cannot use media API in browser under http: if url is not localhost.
You must use https

Hello Pablo,

Thank you for your reply. I tried using HTTPS but no luck. So decided to move everything to a production server and now it works just fine on my dedicated Ubuntu 18.04 server.

But I have faced other problems with multiple participants. I will look that up in the documentation and the community first before posting my problem.

Thank you @micael.gallego and @pabloFuente for your help and time.

Best regards.