views:

833

answers:

1

Using UIImagePicker class I can select the UIImagePickerControllerSource as UIImagePickerControllerSourceTypeCamera. This would show up both the options, camera as well as video recoreder.

I want only the video recording option to be available to the user. And as soon as user opens it starts recording without the need to tap record button.

Anyone who knows how is it possible?

Thanks

+2  A: 

set the mediaTypes property on the UIImagePickerController.

David Maymudes
yep - that worked setting the media type to kUTTypeMedia. But still the question is not 100% answered. How can I make it possible to record automatically the moment recorder opens up. Do not want user to tap the recording button.
AJ
ah. no way to do this, I'm quite sure.
David Maymudes
David - Thanks for following up!Just a super crazy thought - Is it possible UITouch event at a particular (x, y) programmatically?
AJ
so basically you want to simulate a mouse click on the record button? I don't know, but I don't think I've see any app do it, so probably it's either not possible or not allowed.
David Maymudes