ios4 - iPhone: 5 seconds video capture -


i write code when user presses button, camera launched , records 5 seconds of video. in other words want have video capture time limit.

is there inside uiimagepickercontroller or other parts of framework allow doing this? thank you.

there nothing allows directly this. can use uiimagepickercontroller's startvideocapture begin capture , call stopvideocapture 5 seconds later, example [picker performselector:@selector(stopvideocapture) withobject:nil afterdelay:5].

or can same thing avfoundation, in particular avcapturemoviefileoutput's startrecordingtooutputfileurl:recordingdelegate: , stoprecording methods.


Comments