使用 UIImagePickerController 录制视频 [英] recored video using 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,
阿克谢
这篇关于使用 UIImagePickerController 录制视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!