views:

83

answers:

2

I am writing an application that records video on an iPhone using the UIImagePickerController class. The application works fine with the iPhone 4 and iPhone 3GS but I am getting an error on the iPhone 3G. Are there limitations on the iPhone 3G that prevent me from recording video?

I am getting the following error:

2010-09-14 16:27:15.507 VideoRecorder[245:307] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No available types for source 1' * Call stack at first throw:

It appears to error when calling:

    imagePicker.cameraCaptureMode=UIImagePickerControllerCameraCaptureModeVideo;

or imagePicker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];

Any assistance would be appreciated.

Thank you.

A: 

All of the picker APIs was changed on iOS 4. Verify that the 3G has iOS 4 installed

Guy Ephraim
Both 3G's have 4.01 installed
VMan
A: 

I received the following response from Apple:

Movie recording is not support on iPhone 3G, so it can't do video mode. You can iterate through the list of supported capture modes using:

  • (NSArray *)availableCaptureModesForCameraDevice:(UIImagePickerControllerCameraDevice)cameraDevice.

If the mode isn't in the list, then it's not supported.

What I can't understand is that there are several Apps that are available on the AppStore currently that record video on a 3G. Should I be using a different method?

VMan