简体   繁体   English

我可以使用 AVFoundation 在 iPhone 3G 上录制视频吗?

[英]Can I record videos on iPhone 3G using AVFoundation?

Is it possible to record video on iphone 3g with ios 4.1 using AVFoundation?是否可以使用 AVFoundation 在带有 ios 4.1 的 iphone 3g 上录制视频? I m able to record audio and can pick still image using AVFoundation but not able to record video.我可以录制音频并且可以使用 AVFoundation 选择静止图像,但无法录制视频。

If you see the AVFoundation reference documentation its stated that如果您看到AVFoundation参考文档,它声明

You should typically use the highest-level abstraction available that allows you to perform the tasks you want.您通常应该使用允许您执行所需任务的最高级别的抽象。 For example:例如:

  • If you simply want to play movies, you can use the Media Player如果您只是想播放电影,可以使用媒体播放器
    Framework (MPMoviePlayerController or MPMoviePlayerViewController), or for框架(MPMoviePlayerController 或 MPMoviePlayerViewController),或用于
    web-based media you could use a您可以使用基于网络的媒体
    UIWebView object. UIWebView object。
  • To record video when you need only minimal control over format, use the要在只需要对格式进行最少控制的情况下录制视频,请使用
    UIKit framework UIKit 框架
    (UIImagePickerController). (UIImagePickerController)。

As long as a device has a camera, you should be able to record using AVFoundation, check out the AVCam demo code from WWDC 2010 to see how you can do that.只要设备有摄像头,您就应该能够使用 AVFoundation 进行录制,请查看 WWDC 2010 中的 AVCam 演示代码,了解如何做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM