Kanhaiya Sharma
Kanhaiya Sharma

Reputation: 1038

How to fix recording video time duration

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

Answers (3)

Manann Sseth
Manann Sseth

Reputation: 2745

Try this :: imgPickerController.videoMaximumDuration = 30;

Upvotes: 0

user4003752
user4003752

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

Nishant Tyagi
Nishant Tyagi

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

Related Questions