Android Capture Commands
The following list of adb commands provides you with options for screen capture modes available on the Magic Leap 2 headset.
The following list of adb commands provides you with options for screen capture modes available on the Magic Leap 2 headset.
Including ML Spectator Prefabs in Scenes
The Magic Leap 2 supports the Android Camera2 NDK APIs. With Android Camera allows developers to capture real and virtual content inside their applications. While the Magic Leap 2 has only one physical, it is presented as 3 separate devices in the API. The Main Camera (Camera Id 0) and Mixed Reality Camera (Camera Id 3) are mutually exclusive, however they can be accessed even while the CV Camera (Camera Id 1) is being used.
The Capture view allows you to record high quality video at up to 4K resolution and audi. While recording is active, the video stream in the Capture view is stopped. This is because the cameras on your Magic Leap 2 are being used to record video directly onto the device and cannot send the video stream signal to the hub. If you want to view a video stream in the hub of what you see in the headset, then use the Stream view instead.
Stream and capture content from your Magic Leap device in the Magic Leap Hub 2.0 (ML Hub 2.0). This guide will cover the following topics:
Which mobile devices are supported?
This section is for anyone adding Magic Leap Spectator functionality to their ML2 application. Adding the ML Spectator package to your Unity project will allow anyone running the ML Spectator app on their mobile device to stream the content from your application. This can help in unlocking new use cases and support the showcasing of your application as a whole.
Magic Leap Spectator (ML Spectator) is a mobile application that makes it easy for anyone to capture and share high-quality mixed reality content streamed from a Magic Leap 2 device. This powerful application supports a wide variety of use cases, for example:
The Magic Leap 2 MLCamera API allows developers to capture real and virtual content inside their applications. While the Magic Leap 2 has only one camera for capturing content, two separate streams can be access from the camera at the same time. This allows you to create applications that can stream the user's point of view, while using the camera to perform computer vision tasks.
Learn how to use the Magic Leap 2 passthrough feature for capture and dimming.
The Capture App allows you to take screenshots and screen recordings on the Magic Leap 2 from any app or platform. Below you'll find instructions on capturing media and accessing it on-device, in the Magic Leap Hub (ML Hub).