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.