在iOS 4 iphone中运行背景录像机? [英] running Video Recorder in background in iOS 4 iphone?

查看:145
本文介绍了在iOS 4 iphone中运行背景录像机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,当用户在应用程序中收听音乐播放器时,需要在后台录制视频?是否可以在后台模式下自动运行iphone录像机而不提示用户按下录制按钮?

i am developing an application which requires recording a video in the background while the user is listening to music player in the application?? is it possible to run video recorder of iphone in the background mode automatically without prompting the user to press the record button??

推荐答案

看一下iOS 4.0中新的AV Foundation框架,这个框架提供了从相机捕获视频的(低级)访问。

Have a look at the new AV Foundation framework in iOS 4.0, this framework provides (low-level) access to capturing video from the camera(s).

主要类你需要使用 AVCaptureSession 并且你已经将输出设置为 AVCaptureMovieFileOutput AVCaptureVideoDataOutput

The main class you'll need to uses is AVCaptureSession and you'll have set the output to either to AVCaptureMovieFileOutputor AVCaptureVideoDataOutput.

更多信息: AV Foundation Programming Guide

这篇关于在iOS 4 iphone中运行背景录像机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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