简体   繁体   中英

Retrieve iOS videocamera resolution

我需要检索由iPhone的iOS相机拍摄的电影的像素分辨率...是否有像UIDevice这样的库检查我正在使用哪种类型的设备,还有相机信息?

Everything depends in which mode you'll start capturing video.

According to this link: https://developer.apple.com/library/mac/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture.html#//apple_ref/doc/uid/TP40010188-CH5-SW30

You can try to capture video with AVCaptureSessionPresetHigh preset, and than check what's the size of captured image.

This should give you highest video resolution in recording mode.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM