Tuesday, 21 April, 2020 UTC


Summary

This is a brief article on how you can mirror your Oculus Quest screenplay into your MacBook, directly using USB Type-C cable, and wirelessly as well. Yes, you heard it right, no middleman (your phone) involved! You will be able to project the view as below (Figure 1) on to your MacBook.
Figure 1
Casting or live streaming from Oculus Quest to your mobile device (either android or iOS) is a straight forward functionality provided by the Oculus App itself. Therefore, casting it on MacBook is obviously not a difficult task using a phone (You can cast from Quest to your mobile phone, and then using any screen mirroring software you can mirror your phone screen onto your Mac). However, in this article I will describe a way of eliminating this middle man (that is your phones) and casting straight from your Oculus Queest to your MacBook. You can do it either wirelessly or using USB type C cable that comes with the Oculus. Alright, let's get started.
As always, let's look at the prerequisites;
  1. macOS Mojave (v10.14.6)(I haven't tested this on macOS Catalina yet)
  2. Homebrew installed in your mac
  3. Oculus Quest and its USB C cable
First, open the terminal in your mac and type.
brew cask install android-platform-tools
This will take a little while to download and install the necessary packages. it will setadb accessible from your PATH. If you already set adb in your PATH variable then you do not need to follow this step. After this, execute the following command.
brew install scrcpy
Again this will take slightly longer to download and install the necessary packages. Well, that's all you need to do. Simple isn't it?

Trending AR VR Articles:

1. Mario Kart in a real vehicle with VR!
2. How XR Can Unleash Cognition
3. Oculus Go, the Nintendo Switch of VR
4. Expert View: 3 ways VR is transforming Learning & Development
Connect your Oculus Quest to your Mac using USB Type-C cable. Go to the terminal and types scrcpy and press enter. If you get an error, check your Oculus to see whether you have given access permission. In your Oculus, there will be a pop-up window requesting you to confirm access permission to the Mac. Make sure you tick the checkbox to 'allow always' access and confirm. Then re-execute scrcpy command.
You should see the windows open on your mac as below (Figure 2).
Figure 2

Some additional Features

Well, 'Scrcpy' brings you more interesting features other than casting.
  1. Screen recording
Not only you can cast your Oculus Quest but you can record your gameplay or your view using your mac. In order to do that simply type scrcpy --record myrecordiing.mp4and press enter. Replace the file name as you prefer.
2. Wireless screen mirroring
Well, if you don't want to use your USB Type-C cable, Scrcpy allows you to do wireless screen mirroring as well (Try with 'scrcpy' v1.12.1). The only restriction here is both your MacBook and Oculus Quest must be in the same WiFi network.
First, you need to find the IP address of your Oculus Quest. If you have a USB Type-C cable connect your Quest to the MacBook and open the terminal and type adb shell ip route and press enter. Then you will get a similar output as below.
10.20.90.0/19 dev wlan0  proto kernel  scope link  src 10.20.90.101
Your Quest's IP address will be the one that follows src. In this example, it's 10.20.90.101. Once you get your Quest's IP address, enable adb over TCP/IP using following terminal commands.
adb tcpip 5555
adb connect <ipaddress>:<port>
Then, unplug your Quest. Connect to your device
adb connect <ipaddress>:5555
Replace <ipaddreess> with actual IP address. To look like adb connect 10.20.90.101:5555 and then run 'scrcpy' as mentioned above in your terminal.
You can further read on what 'scrcpy' can do here.
Thanks to all the 'scrcpy' contributors and the Open Source communities. Cheers!

Don’t forget to give us your 👏 !

https://medium.com/media/1e1f2ee7654748bb938735cbca6f0fd3/href
Cast directly from your Oculus Quest to MacBook was originally published in AR/VR Journey: Augmented & Virtual Reality Magazine on Medium, where people are continuing the conversation by highlighting and responding to this story.