- A .env file is needed for connecting to the Desktop Vision oauth api
DESKTOP_VISION_ID=********************
DESKTOP_VISION_KEY=********************
- npm install
- npm run dev
- open http://localhost:3000
- connect vr device with cable
- chrome://inspect
- add localhost:3000 to port forwarding
- open http://localhost:3000 on vr device browser
- Example code is in src/main.js
- Create an account at https://desktop.vision
- Download the streamer app and sign in
- Confirm the streamer app is connected and listed at https://desktop.vision/app
- Have the user sign in to Desktop Vision, after sign in, the user will redirect back with a single use oauth code.
- Use the oauth code to fetch an access token for the user.
- Use the access token to fetch the user computers.
- Connect to a user computer with the access token & computer channel name.
- Listen for the ComputerConnection event "stream-added" for a video stream.