Closed jimver04 closed 3 years ago
ok after reading more I figured out that I have to go through Janus installation in the server. Your documentation is good but a video would help better.
Yes you need to install your own server to be able to test the example. If someone want to make an install on some cloud provider that maybe allow to run a free VM and want to maintain it, please be my guest. :) I'll be happy to change the link in the example to point to it. Making a video to show how to install the server is not on my roadmap. I don't have the bandwidth to do that, sorry. This documentation alone took me like 3 weekends. :) If you find any issue with the documentation I wrote, please open a PR with some changes so we can discuss it. If you block on something, you can comment here. I'll close the issue once you successfully installed your server.
I'm closing it. If you have any questions on the doc you can still ask here or come to the networked-aframe channel on A-Frame slack.
Hi, I'm trying to setup Janus server myself and followed the Ubuntu 20.04 installation tutorial so far, but the difference is I'm using AWS Lightsail and Apache.
In this case, suppose my public IP is 123.123.123.123
.
The server returns 403 as expected from the tutorial when I opened https://123.123.123.123/janus
, however when the adapter example (https://123.123.123.123/
) and changed the server URL to wss://123.123.123.123/janus
, the console returned:
index.js:193 WebSocket connection to 'wss://123.123.123.123/janus' failed:
(anonymous) @ index.js:193
connect @ index.js:192
value @ networked-aframe.min.js:1
connect @ networked-aframe.min.js:1
(anonymous) @ a-node.js:263
init @ networked-aframe.min.js:1
initComponent @ component.js:320
updateProperties @ component.js:302
module.exports.Component @ component.js:78
i @ component.js:662
value @ a-entity.js:332
value @ a-entity.js:495
value @ a-scene.js:722
value @ a-entity.js:463
(anonymous) @ a-entity.js:249
(anonymous) @ a-node.js:127
index.js:279 Janus websocket closed unexpectedly.
This is my current Apache vhost setup:
<VirtualHost 127.0.0.1:443 _default_:443>
ServerAlias *
SSLEngine on
SSLCertificateFile "/opt/bitnami/apache/conf/bitnami/certs/server.crt"
SSLCertificateKeyFile "/opt/bitnami/apache/conf/bitnami/certs/server.key"
DocumentRoot /home/bitnami/htdocs
<Directory "/home/bitnami/htdocs">
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted
</Directory>
ProxyPass /janus http://localhost:8188/
ProxyPassReverse /janus http://localhost:8188/
Header set Upgrade 'websocket'
Header set Connection 'Upgrade'
</VirtualHost>
Where did I miss? Thanks before.
Hi, checking if you get 403 tip I wrote in the doc may be not be a good tip in this case. :) Are you getting a white page with only the 403 string on the top left? If not you're probably getting the 403 from apache and not janus like you should. Your Proxy rules may be wrong? Look at an example of apache conf for janus here https://github.com/jangouts/jangouts/blob/master/DEPLOYMENT.md
Thanks for the example! Turned out I setup the proxy wrong.
@kevinsuwito I wonder to know how you set up the Janus server. Could you give me some advice?
@EricPengShuai I just followed this instruction: https://github.com/networked-aframe/naf-janus-adapter/blob/master/docs/janus-deployment.md
Keep in mind so far that I'm only able to set it up properly on Ubuntu/Debian. I tried installing on Redhat/RHEL 8 and I think something is wrong with the libnice
package over there and messes up the ICE connection from the NAF adapter, but I'm not really sure.
"version": "4.0.2" Browser: Chrome
I am trying to test the audio-with-camera.html
but I get:
Warning: broadcastData called without a publisher: index.js:1075 Error: WebSocket connection to 'wss://preprod-janus.example.com/janus' failed:
Any idea ?