views:

251

answers:

2

hi all, i want to create a video programmatically using iPhone camera. i can take a picture programmatically . but about video i am not sure. so please suggest whether it is possible or not ? if yes, then please guide me or provide me some useful link

+1  A: 

It is possible only in iPhone 3GS. iPhone 3G doesn't support video capture.

UIImagePickerController is the class you are looking for. It allows you to take pictures (on 3G and 3GS) and record videos (on 3GS).

RaYell
+2  A: 

Yes, if the device supports it. In fact, you use the same APIs that you would to capture the camera stills.

Have a look at the Setting Required Hardware Capabilities article as well as UIImagePickerController and UIImagePickerControllerDelegate, they have been updated for 3.1

slf