Camera2
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.
Magic Leap Spectator
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:
MLCamera
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.
Stream
Stream lets you initiate and view a live video stream from your connected device in The Hub. Stream differs from Capture in a few ways. The Stream view allows you to record video and capture photos of the video stream from your device, just like Capture does. Note that the recording quality in Stream is limited to 1080p resolution and is dependent upon the quality of your internet connection. If your internet connection is slow, you may see degraded quality in the streaming video. If you want to record video or photos with higher quality (up to 4K resolution) or if you want to include audio in your video recordings, try using Capture instead.