Contents

activeDepthDataMinFrameDuration

The minimum frame duration of depth data.

Declaration

var activeDepthDataMinFrameDuration: CMTime { get set }

Discussion

Use this property to set an upper limit to the frame rate at which the system produces depth data. Lowering the depth data frame rate typically lowers power consumption which increases the time the camera can run before it reaches an elevated system pressure state. Setting a value outside the active depth data format’s supported frame rate range produces an exception.

Setting this property to invalid resets it to the active depth data format’s default minimum frame duration. Setting this property to positiveInfinity results in a depth data frame rate of 0.

This value gets reset whenever either the active video format or the active depth data format changes.

See Also

Configuring frame durations