Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
424 views
in Technique[技术] by (71.8m points)

ios4 - Recording Video in iPhone using AVFoundation Framework(AVCaptureSession)?

i am developing an application in which i am trying to record a video using AVCaptureSession class...i came across a few good tutorials like this one

http://www.benjaminloulier.com/posts/2-ios4-and-direct-access-to-the-camera

but in these tutorials only capturing images from the video frames is done while i want to record a full length video which i can either save in my device or upload it to my server....How can i achieve this using AVFoundation framework??

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Check out the sample code from the WWDC 2010 http://developer.apple.com/videos/wwdc/2010/ for example the AVCamDemo.

Login to your iPhone developer account (the box with "Download WWDC 2010 Session Videos for Free") then you see a new page and there you can click on "View in iTunes" and then in iTunes(!) you get the link to the WWDC 2010 example source code... or you can try the link

http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?code=y&source=x&bundleID=20645

but to download the source code you must also login to your developer account.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...