如何在没有用户交互的情况下在Iphone应用程序中自动录制视频 [英] How to record a video automatically in Iphone app without user interaction

查看:158
本文介绍了如何在没有用户交互的情况下在Iphone应用程序中自动录制视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用需要自动录制视频的iphone应用。

I am working an iphone app that needs to record a vedio automatically.

我使用了移动核心服务框架并使用它。我让它进入视频模式并点击记录选项开始捕获视频。但我自动想要它..我应该能够录制视频而无需点击录制选项。那就是当视频模式出现时自动开始录制视频。

I used mobile coreservices framework and using that. I made it to came into video mode and clicking on record option its start capturing a vedio. But I want it automatically that is.. I should able to record a video without clicking on record option. That is when video mode comes up its automatically start record video.

任何人都可以提供帮助吗?

Could any one help?

推荐答案

您可以查看UIImagePickerControllers startVideoCapture方法,该方法用于开始从相机拍摄视频,这是在您不使用相机标准控制器并提供和叠加视图时使用的方法。这是一个参考 UIImagePickerCOntroller参考。如果这对您来说还不够,您可能需要查看AVFoundation框架,它可以让您更好地控制视频捕获过程...希望有帮助

You can look at UIImagePickerControllers startVideoCapture method which is used to start taking video from the camera, this is to be used when you arent using the camera standard controlors and you provide and overlay view. Here is a reference UIImagePickerCOntroller ref. If this is not enough for you, you might want to look into AVFoundation framework which gives you a lot more control over video capturing process...hope that helps

这篇关于如何在没有用户交互的情况下在Iphone应用程序中自动录制视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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