How do I capture passthrough video on Vision Pro

Generated on 8/2/2024

1 search

To capture passthrough video on Vision Pro, you can use the new API introduced in visionOS. Here are the steps to implement this:

  1. Include Passthrough Entitlement: Add the include passthrough entitlement file to your project. This gives you access to the combined spatial view with the passthrough camera when taking a screen capture.

  2. Start Broadcast: Utilize the system's start broadcast button each time you start a screen capture or share. This is necessary to protect user privacy and ensure that the user is aware of the capture.

  3. Capture the View: When doing a screen capture with Vision Pro, all the windows a user has open are captured, but the background is removed. Instead of the black background, the passthrough camera's view is included, enabling the "see what I see" capability in your captures.

For more detailed information, you can refer to the session Introducing enterprise APIs for visionOS (05:40).

Relevant Sessions

  1. Introducing enterprise APIs for visionOS
  2. Build compelling spatial photo and video experiences
  3. Capture HDR content with ScreenCaptureKit

If you need more specific details or code examples, you might want to check out the chapters in the sessions mentioned above.