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

Question Regarding the use of WebRTCVideoPlane #37

Open AnJunHo98 opened 19 hours ago

AnJunHo98 commented 19 hours ago

Hello, I am currently trying to stream images from the Isaac Sim environment to a Vuer environment using the WebRTC Browser Client functionality.

In Isaac Sim, I created a WebRTC server address as follows: https://localhost:8443/streaming/webrtc-client

I am using the OpenTeleVision repository after cloning it.

async def main_webrtc(self, session, fps=60):
    session.set @ DefaultScene(frameloop="always")
    session.upsert @ Hands(fps=fps, stream=True, key="hands", showLeft=False, showRight=False)
    session.upsert @ WebRTCVideoPlane(
        src="https://127.0.0.1:8443/streaming/webrtc-client",
        iceServer={
            "urls": 'stun:stun.l.google.com:19302'
        },
        key="webrtc-stream",
        aspect=1.33334,
        height=8,
        position=[0, -2, -0.2],
    )
    while True:
        await asyncio.sleep(1)

When I access the Vuer page on port 8012, I only see a blank screen, and WebRTC is not connecting. Is there anything else I should consider?