This proxy can be used to communicate with an HTTP server running on a local robot from a webrtc custom view/module.
This project has a few components:
- an adapter in
main.pythat takes webrtc calls from the website, and translates them into http calls on the device. You can run it using./start.sh - a simple website for testing
simple_website.pyyou can run withexport FLASK_APP=simple_website flask run - an example website
frontendthat can e- setup using
cd frontend && yarn - and run
yarn dev
- setup using
if run locally, you can add a custom view http://localhost:9146/index.html?device={device_id}&auth={auth} during development