KMS 6.4.0 Ubuntu 14.04 LTS (64 bits), JS hello-world-tutorial 6.2.2-dev, Windows -- Can’t see loopback video #77
Comments
The problem is that you have not configured a STUN/TURN server. Please check documentation in order to know more about STUN and TURN servers. |
As mentioned in the documention
My KMS is running in a VM on cloud accessible over internet. Do I still need STUN/TURN server? |
You are right, your server is in a public IP address, but your computer is not. Then it is necessary to configure STUN or TURN (depending on the type of NAT) in the client. This should be done by applications already. @igracia can you have a look at this? I can't see reflexive candidates from the browser in the attached log. You should also check that there is UDP access from your computer to the kms instance. There can be firewalls blocking the access. |
I also tried running the same tutorial on a Ubuntu machine in which both KMS and http-server was running. KMS was NOT SSL enabled in this case. Still I couldn't see the remote loopback video. No errors in logs. |
@bhushanvadgave can you share kms log here? |
@bhushanvadgave If you access your page through HTTPS, and your KMS is using plain WS, you'll get a mixed content alert in your browser. There's no way you'll be able to signal KMS if you can't connect to it. You should get an error in your JS console, in your browser. |
@bhushanvadgave Did you make any progress? |
Yes @igracia, I set up a Coturn server by following this documentation and it worked with internet (no-proxy). But currently I have scenario where my KMS, Coturn server and NodeJS client are deployed in cloud VMs but JS client is in corporate network (behind proxy). Do I need to set up another TURN server in corporate network?? |
@bhushanvadgave You'll probably need to provide TURN configuration for your clients too. Use this code in your JS client code
If that's ok with you, I'll proceed and close the issue, as it's already solved. I'll wait for your answer. |
As we don't have response from @bhushanvadgave we proceed to close the issue |
KMS kurento.conf.json
I started JS kurento-hello-world tutorial by running
http-server -p 8443 -S -C keys/server.crt -K keys/server.key
Accessed
https://<KMS Host>/kurento
to let browser download the certificate.Then accessed the demo by
https://localhost:8443/index.html?ws_uri=wss://<KMS Host>/kurento
I could only see the local video stream but not the remote. No errors found in browser or KMS.
Browser Logs
I tried other tutorials also but faced same issue.
The text was updated successfully, but these errors were encountered: