UIImagePickerController - 相机未准备好 [英] UIImagePickerController - Camera not ready

查看:34
本文介绍了UIImagePickerController - 相机未准备好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款可以录制视频的 iPhone 应用.我创建了一个 UIImagePickerController,将其限制为视频录制,然后以编程方式要求相机启动 VideoCapture.不幸的是,当我运行该应用程序时,我在控制台中得到以下信息;

I'm developing an iPhone app that records video. I create a UIImagePickerController, limit it to video recording then programatically ask the camera to startVideoCapture. Unfortunatly when I run the app I get the following in the console;

UIImagePickerController:忽略开始视频捕获的请求;相机尚未准备好."

"UIImagePickerController: ignoring request to start video capture; camera is not yet ready."

显然 iPhone 还没有完成设置.

Obviously the iPhone is not done setting things up.

有没有办法在开始录制之前检查设置过程是否已完成?

Is there a way that I can check the setup process has completed before starting to record?

非常感谢.

丰富

推荐答案

startVideoCapture 无法录制时应返回 NO.如果需要,您可以检查一下.

startVideoCapture should return NO when it can't record. You can check that if needed.

这篇关于UIImagePickerController - 相机未准备好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆