Reputation: 1038
Actually I am able to record a video successfully but I want to record video for 30 second. How can I do this ?
thnx in advance.
Upvotes: 1
Views: 297
Reputation:
You need to set the videoMaxiumDuration property in UIImagePickerController.
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.
Upvotes: 0
Reputation: 9913
You can use this default property for setting maximum duration for video recording:
@property (nonatomic) NSTimeInterval videoMaximumDuration
Ex : imagePickerControllerInstance.videoMaximumDuration = 30;
Hope it helps you.
Upvotes: 2