vuer-ai / vuer

Vuer is a 3D visualization tool for robotics and VR applications.
https://docs.vuer.ai
MIT License
153 stars 4 forks source link

WebRTC requires HTTPS & HTTPS not working #19

Closed antonioarbues closed 4 months ago

antonioarbues commented 4 months ago

Hi,

I tried to use WebRTCStereoVideoPlane but I get a HTTPS required message in the Vuer client, where I can see the grid with a gray video plane placeholder in the middle.

Then, I tried to start Vuer with a self-signed certificate, but this time around it only displays the grid, without even the placeholder for the video plane. In fact, the function to display the plane is not even called. Here's how I am calling Vuer:

cert_file = "cert.pem"
key_file = "key.pem"
app = Vuer(
    host="0.0.0.0",
    queries=dict(grid=False),
    queue_len=3,
    cert=cert_file,
    key=key_file,
)

So my questions are:

  1. Do I actually need to run HTTPS to use WebRTCStereoVideoPlane or there is a workaround?
  2. How can i get Vuer to run on HTTPS (if needed)?

Thank you!

antonioarbues commented 4 months ago

Solved:

  1. HTTP is fine - as I understood later, WebRTCStereoVideoPlane allows the headset to start a webrtc session directly from its own browser
  2. What I was missing was the conversion of the web socket ws to a secure web socket wss