Contents

activeLockedVideoFrameDuration

The receiver’s locked frame duration (the reciprocal of its frame rate). Setting this property guarantees the intra-frame duration delivered by the device input is precisely the frame duration you request.

Declaration

var activeLockedVideoFrameDuration: CMTime { get set }

Discussion

Set this property to run the receiver’s associated AVCaptureDevice at precisely your provided frame rate (expressed as a duration). Query minSupportedLockedVideoFrameDuration to find the minimum value supported by this AVCaptureDeviceInput. In order to disable locked video frame duration, set this property to kCMTimeInvalid. This property resets itself to kCMTimeInvalid when the receiver’s attached activeFormat changes. When you set this property, its value is also reflected in the receiver’s activeVideoMinFrameDuration and activeVideoMaxFrameDuration.

See Also

Locking frame duration