Wired Mirroring with adb
This topic describes a simple way to enable wired mirroring on Oculus Go using Android Debug Bridge (adb) and VLC media player. This solution is easy to set up, allowing you to quickly show off your experience even where internet connectivity may be unreliable.
Hardware Requirements
- Oculus Go
- PC/Mac computer with an open USB Type A slot
- USB to Micro USB cable
Note: You may need to use a different USB cable than the one that came with the Oculus Go.
Software Requirements
- Android Debug Bridge (adb) - A versatile command-line tool that allows a client (in this case, your development machine) to send commands to a daemon which runs commands on a device. Once you download adb or Android Studio with SDK Tools, add the platform-tools and tools directories to your system Path variable in Windows or OSX. If you followed the steps in the Android Development Software Setup topic, adb should be installed and the System Path variable should be set up correctly.
- VLC media player - A media player that will display the mirrored screen. With VLC tools, you will be able to zoom into either eye. Standard mirroring will create a two-eyed view of the content, displayed as two lens-shaped circles on the screen. With VLC, there are tools in-place that allow you to pick one section of the mirrored image to focus on so the audience will see a full-screen view of your application.
Walkthrough
- Make sure you’ve gone through the steps in Device Setup - Oculus Go to enable Developer Mode.
- Connect the Oculus Go to your PC or Mac using the USB cable.
- Open the command-line interface on your PC or Mac.
- Windows PC: Press the Start key and type
cmd in the Windows Search bar. Right-click on Command Prompt and select Run as administrator. - Mac: Open the Terminal app found at Applications > Utilities > Terminal.
- From the command line, type
adb devices and press Enter. If you see a device ID along with the word “device”, you are ready. If you see a device ID along with something like “denied” or “inactive”, you need to put on the device and click the Allow this device access to files prompt. - Once you are ready, enter one of the following commands:
- If everything works correctly, VLC should open and begin to mirror your Oculus Go. If you are not wearing the device or covering its internal proximity sensor (located in the headset, near the top, between the lenses), nothing will display on the mirrored screen.
Troubleshooting
Audio output not available for wired mirroring
Audio mirroring is not supported in this method of wired mirroring. To circumvent this, you can run audio from your device’s 3mm headphone jack into your computer.
No interactive zoom / Double vision
To repair this issue, follow these steps:
- Open VLC media player.
- Navigate to Tools > Effects and Filters > Video Effects > Geometry and check the Interactive Zoom box.
- In the top-left corner of the application, you will notice a black square that covers a rectangular view of the mirrored image. You can move this rectangular field or drag to enlarge it. This will effectively crop and zoom the specific area of the Oculus device you want to mirror.
Latency issues
- With this process, you should expect a 2 to 4 second delay. Keep this delay in mind when presenting. Do your best to avoid quick bursts of movement and narrate things as they happen on the computer.
- After being connected for a while without use, the mirrored screen may appear pixelated when jumping back into VR. Close the stream between uses to prevent this issue.