-
Notifications
You must be signed in to change notification settings - Fork 1
/
Read Me.txt
executable file
·57 lines (42 loc) · 2.04 KB
/
Read Me.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Read Me About AVCam
========================
1.2
AVCam demonstrates usage of AV Foundation capture API for recording movies, taking still images, and switching cameras.
AVCam runs on iOS 4.0 and later.
Packing List
------------
The sample contains the following items:
o Read Me.txt -- This file
o AVCam.xcodeproj -- An Xcode project for the sample
o Classes.[h,m] -- The core AVCam code
o main.m -- Creates the app object and the application delegate and sets up the event cycle
o Resources -- Contains the application nib files and image files for the user interface
Building the Sample
-------------------
AVCam was built with Xcode 3.2.5 on Mac OS X 10.6.6 with the iOS 4.2 SDK. To build the app, simply open the project and choose Build from the Build menu. This project cannot be built for the iOS simulator.
Using the Sample
----------------
Use the buttons to perform video and still image capture:
Record -- start/stop video recording
Camera -- switch between front and back cameras
Photo -- capture a still image
A single-tap will cause an auto focus at a specific point, then lock focus. A double-tap will change back to continuous auto focus.
Photos and movies will be saved to the device's camera roll. Note that on a device with no camera, but a mic, the app will record audio-only movies, which cannot be stored in the camera roll. They will instead be saved within the app bundle and made accessible through iTunes file sharing.
How It Works
------------
AVCam makes use of the following AV Foundation AVCapture classes to provide audio, video and still image capture and control:
AVCaptureConnection
AVCaptureDevice
AVCaptureFileOutput
AVCaptureInput
AVCaptureMovieFileOutput
AVCaptureOutput
AVCaptureSession
AVCaptureStillImageOutput
AVCaptureVideoPreviewLayer
See the AV Foundation documentation for more information.
Credits and Version History
---------------------------
If you find any problems with this sample, please file a bug against it at <http://developer.apple.com/bugreporter/>.
1.0: Initial version.
1.2: Updated and improved.