1

[AVCaptureConnection setVideoMinFrameDuration:] just like in obj-C I am unable to find same for swift

For Swift I tried

var device = AVCaptureDevice()
    device?.activeVideoMinFrameDuration = CMTimeMake(1, 1);

But still no luck in swift

0

1 Answer 1

1

The method you are searching for is videoMinFrameDuration from AVCaptureConnection. This function is deprecated since iOS7.

By the way, the documentation say :

You can only set this value if isVideoMinFrameDurationSupported is true.

You should check that isVideoMinFrameDurationSupported is true

If you want to replace that function please read that answer : videoMinFrameDuration is Deprecated

Source : https://developer.apple.com/reference/avfoundation/avcaptureconnection/1388931-videominframeduration

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.