Application crashing while accessing microphone in iOS 12.1.2 for iPhone XS

会有一股神秘感。 提交于 2019-12-06 15:15:17

We have tried searching for this property for AVCaptureDevice. However, not able to find the same.

Solution:

The property SupportedColorSpaces really exist under AVCaptureDevice.ActiveFormat, make sure you get the correct instance of AVCaptureDevice:

To use it, for example:

 var videoDevs = AVCaptureDevice.DevicesWithMediaType(AVMediaType.Video);
 var device = videoDevs[0];
 NSNumber[] arr = device.ActiveFormat.SupportedColorSpaces;

Document is here:

AVCaptureDeviceFormat

AVFoundation.AVCaptureDevice

SupportedColorSpaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!