不推荐使用的AVCaptureConnection帧持续时间属性的替代方案? [英] Alternatives to deprecated AVCaptureConnection frame-duration properties?
本文介绍了不推荐使用的AVCaptureConnection帧持续时间属性的替代方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据此文件与视频帧最大和最短持续时间相关的属性和方法:
According to this document the properties and methods relating to video-frame maximum and minimum duration:
-
supportsVideoMaxFrameDuration
-
supportsVideoMinFrameDuration
-
videoMaxFrameDuration
-
videoMinFrameDuration
supportsVideoMaxFrameDuration
supportsVideoMinFrameDuration
videoMaxFrameDuration
videoMinFrameDuration
全部已被弃用。还有替代品吗?
have all been deprecated. Are there alternatives?
推荐答案
根据头文件(AVCaptureSession.h),
According to the header file (AVCaptureSession.h),
此属性在iOS上已弃用,其中最小和最大帧速率调整为
,仅使用
activeVideoMinFrameDuration和activeVideoMaxFrameDuration
属性在AVCaptureDevice上应用。
This property is deprecated on iOS, where min and max frame rate adjustments are applied exclusively at the AVCaptureDevice using the activeVideoMinFrameDuration and activeVideoMaxFrameDuration properties.
这篇关于不推荐使用的AVCaptureConnection帧持续时间属性的替代方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文