iphone - Capture a video of 10 seconds length and upload it to server using ASIHTTPRequest -


i need capture video maximum length of 10 seconds, , need upload server using asihttprequest,

how do that?

you can set videomaximumduration property of image picker this.

uiimagepickercontroller *imagepicker = [[uiimagepickercontroller alloc] init];     imagepicker.delegate = self;     imagepicker.mediatypes  = @[(nsstring *)kuttypemovie];     imagepicker.videoquality = uiimagepickercontrollerqualitytypehigh;     imagepicker.sourcetype = uiimagepickercontrollersourcetypephotolibrary;       imagepicker.videomaximumduration = 10; 

Comments