tags:

views:

276

answers:

1

Is it possible to set the time limit for a video recording in the iPhone? I know the maximum limit is 10 minutes. But I want to reduce it to 5 minutes. If it is possible how can it be done?

+1  A: 

You need to set the videoMaxiumDuration property on UIImagePickerController after configuring it for video recording.

The value is an NSTimeInterval which is specified in seconds, so you'll want to set it to 300 seconds if you want 5 mins of video.

Jasarien
thanx for your reply.Can you please give me any code?
XcoderMi2
If you've been able to setup a UIImagePickerController in video recording mode, you should be able to figure out how to set the duration. Read the documentation for UIImagePickerController and come back.
Jasarien