Search code examples
iphoneiosvideo-capture

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.


Solution

  • 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.