摘要: I’m writing this because – as of April 2011 – Apple’s official documentation is badly wrong. Some of their source code won’t even compile (typos that are obvious if they’d checked them), and some of their instructions are hugely over-complicated and yet simply don’t work.This is a step-by-step guide 阅读全文
posted @ 2011-11-21 22:54 Loretta^_^ 阅读(386) 评论(0) 推荐(0) 编辑
摘要: Q: How do I capture video frames from the camera as images using AV Foundation?A:How do I capture video frames from the camera as images using AV Foundation?To perform a real-time capture, first create a capture session by instantiating anAVCaptureSessionobject. You use anAVCaptureSessionobject to c 阅读全文
posted @ 2011-11-21 20:13 Loretta^_^ 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1, Using Assets [自己理解为:数据的来源]这个资源可以来自自己的ipod媒体库或图片也可以时文件creating an Asset ObjectNSRUL *url = 后跟一个网址 如电影文件等资源AVURLAsset *ansset = [[AVURLSset alloc] initwithURL:url options:nil];2.获得一个视频的图像使用AVASsetImageGenerator类来实现用来生成图像序列3.Playback我们在播放视频时可以使用AVPlayer和AVQueuePlayer播放AVPlayer是AVQueuePlayer的父类a先创建一个 阅读全文
posted @ 2011-11-21 19:23 Loretta^_^ 阅读(357) 评论(0) 推荐(0) 编辑