Kurento Hello World,不返回环回 [英] Kurento Hello World, not returning loopback
问题描述
我正在尝试设置基本的 hello world 示例.
I am trying to setup the basic hello world example.
我在 Ubuntu 14.04 LTS 上使用 t2.micro 实例,并且我在本地机器上有该示例的 github 代码.
I am using a t2.micro instance with Ubuntu 14.04 LTS and I have the github code for the example on my local machine.
我使用的网址是:https://localhost:8443/index.html?ws_uri=wss://ec2INSTANCE:8888&ice_servers=[{"urls":"stun:stun.l.google.com"}]#
The url I am using is: https://localhost:8443/index.html?ws_uri=wss://ec2INSTANCE:8888&ice_servers=[{"urls":"stun:stun.l.google.com"}]#
我没有在服务器上配置 stun 或 turn,但应该没问题,因为我正在传递 stun 服务器以在 url 中使用.
I do not have the stun or turn configured on the server, but it should be ok since I am passing the stun server to use in the url.
对此有什么建议吗?
我刚刚检查了我的控制台,我看到了这一点,即使在此实例所在的 AWS 安全组中打开了端口 8888
I just checked my console and I see this, even though port 8888 is open in AWS Security group that this instance is in
VM8812:35 WebSocket connection to 'wss://ec2Instance:8888/' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED
推荐答案
我能够解决我所看到的问题
I was able to get past the issues that I was seeing
- 使用 http,按照新 EC2 (Ubuntu 14.04 LTS) 的基本说明进行操作://doc-kurento.readthedocs.io/en/stable/installation_guide.html
- 在conf中添加一个STUN服务器
- 使用 stun:173.194.66.127:19302
- 使用 http://webrtc.github.io/进行测试样本/src/content/peerconnection/trickle-ice/
- 取消注释/etc/kurento/kurento.conf.js 的安全部分
- 创建自签名证书,并放入/etc/kurento
- 转到https://ec2InstanceUrl:8433/kurento 并接受不安全的连接
- Uncomment secure section of /etc/kurento/kurento.conf.js
- Create the self signed certificate, and placed in /etc/kurento
- Go to https://ec2InstanceUrl:8433/kurento and accept insecure connection
您必须通过查看类似于下图的内容来验证您的 STUN 服务器是否正常工作,其中 srflx 位于组件类型下.
You must verify that your STUN server is working by seeing something similar to the below image, with the srflx under Component Type.
这篇关于Kurento Hello World,不返回环回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!