Using isCinematicVideoCaptureEnabled on videoDeviceInput for Depth Data Preview

In WWDC26 video "Camera and Photo Technologies Group Lab", @14:17, Brad Ford mentions that we can use isCinematicVideoCaptureEnabled on videoDeviceInput to display depth blur on camera preview, even on a photo camera app.

However, when I turn it on for depth mode, the API tells me that it is not supported with the current camera, which is Dual or Dual Wide cameras I use for depth.

Since there are no other resources on this, I would love to get some guidance on how to do this. I just want to display depth blur on camera preview, that is it.

Answered by DTS Engineer in 894907022

Dear sle39lvr,

To use isCinematicVideoCaptureEnabled, clients need to select a format that has isCinematicVideoCaptureSupported, like so:

// Select a format that supports Cinematic Video capture

for format in camera.formats {

    if format.isCinematicVideoCaptureSupported {

       try! camera.lockForConfiguration()
       camera.activeFormat = format
       camera.unlockForConfiguration()

       break
    }
}

Please see WWDC25 session Capture cinematic video in your app and accompanying sample app for reference.

Hoping this helps,

Richard Yeh  Developer Technical Support

Dear sle39lvr,

To use isCinematicVideoCaptureEnabled, clients need to select a format that has isCinematicVideoCaptureSupported, like so:

// Select a format that supports Cinematic Video capture

for format in camera.formats {

    if format.isCinematicVideoCaptureSupported {

       try! camera.lockForConfiguration()
       camera.activeFormat = format
       camera.unlockForConfiguration()

       break
    }
}

Please see WWDC25 session Capture cinematic video in your app and accompanying sample app for reference.

Hoping this helps,

Richard Yeh  Developer Technical Support

Using isCinematicVideoCaptureEnabled on videoDeviceInput for Depth Data Preview
 
 
Q