exoplatform / web-conferencing

eXo Web Conferencing offers a core support for making video calls in eXo Platform. It is a foundation for plugging and managing virtually any web conferencing solutions.
GNU Affero General Public License v3.0
1 stars 3 forks source link

WebRTC issue #11

Closed csakis closed 6 years ago

csakis commented 6 years ago

I'm using the trial version of exo for evaluating. When I try to use peer-to-peer video conferencing the webRTC address is always locahost/...., even though the application runs on my home net: 192.168.1.123

fdrouet commented 6 years ago

And what is the problem your encounter ?

csakis commented 6 years ago

Well, I get an error, since nothing is running on the localhost. The localhost is a client the logged into the server. I'll try to send a picture

csakis commented 6 years ago

2018-09-26

fdrouet commented 6 years ago

Please give more details on your eXo Platform installation

pnedonosko commented 6 years ago

Hi, you must run HTTPS even on localhost.

csakis commented 6 years ago

docker run -v exo_trial_data:/srv -p 8080:8080 exoplatform/exo-trial Exo version is 5.0.3 http://192.168.1.2:8080

Peter is right that WebRTC needs https, without it cannot work. However, in the pop-up video chat window, the address is localhost:8080/webrtc/call/p/.... Shouldn't that be 192.168.1.2/webrtc/call/p/...?

csakis commented 6 years ago

Just one more thing: If I initiate the call from the computer that actually runs the docker image (i.e. localhost), then the video pop-up window works correctly: image

pnedonosko commented 6 years ago

A call window will use the same host, scheme and port that the Platform page from which it was open. As for HTTPS a call page as such will be loaded but should fail to establish actual RTC connection, it should be failed at browser level API. Isn't a case for you?

csakis commented 6 years ago

Peter, look at the two pictures below: Picture 1. The url shows http://192.168.1.2, I click on the "Call" button: image

Picture 2. The pop up window has localhost in it: image

Thanks for the very quick responses, however, I need to go bed now. Don't expect replies from me for the next 8 hours.

fdrouet commented 6 years ago

@csakis please add -e EXO_PROXY_VHOST=192.168.1.2 in your Docker command line to create and launch eXo container. This will configure the underlying Tomcat the good way.

docker run -v exo_trial_data:/srv -p 8080:8080 -e EXO_PROXY_VHOST=192.168.1.2 exoplatform/exo-trial

This should solve your 'localhost' url problem.

csakis commented 6 years ago

Thanks, Frederic. The proxy settings solved the problem