Open Camera in Spatial Mode in iOS for capturing spatial videos

How to programmatically open the camera the spatial mode in iOS for capturing the spatial videos. Any API for opening camera in spatial mode?

Answered by Vision Pro Engineer in 792702022

In visionOS 2, you can use new APIs on AVCaptureDevice and AVCaptureMovieFileOutput to capture spatial videos from your iOS app on iPhone 15 Pro.

The Build compelling spatial photo and video experiences session that @andromeda mentioned includes a code snippet (under the "Code" tab on the session's web page) that shows how to configure spatial video capture on iPhone 15 Pro.

Hello,

There is no API for capturing spatial video, please file an enhancement request using Feedback Assistant.

If you're looking for a programmatic way of capturing spatial videos, check out https://developer.apple.com/videos/play/wwdc2024/10166/?time=6m39s

Accepted Answer

In visionOS 2, you can use new APIs on AVCaptureDevice and AVCaptureMovieFileOutput to capture spatial videos from your iOS app on iPhone 15 Pro.

The Build compelling spatial photo and video experiences session that @andromeda mentioned includes a code snippet (under the "Code" tab on the session's web page) that shows how to configure spatial video capture on iPhone 15 Pro.

Open Camera in Spatial Mode in iOS for capturing spatial videos
 
 
Q