使用UIImagePickerController记录视频 [英] recored video using UIImagePickerController

查看:97
本文介绍了使用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: ignoring request to start video capture; camera is not yet ready."

我该如何处理?

推荐答案

最可能的原因似乎是info.plist文件中缺少必需的密钥。您需要配置 UIRequiredDeviceCapabilities 。此外,您必须实现委托对象。有关详细信息,请查看 http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html#//apple_ref/doc/uid/TP40010406

The most probable reason seems to be the absence of the required key in your info.plist file. You will need to configure UIRequiredDeviceCapabilities. Also, you must implement the delegate object. For details, have a look at http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html#//apple_ref/doc/uid/TP40010406.

HTH,

Akshay

这篇关于使用UIImagePickerController记录视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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