Obaid Obaid - 3 months ago 65
iOS Question

detecting when user starts video recording

I have a UIImagePickerController which I use to record video. now i want to detect when the user taps on record button. the delegate doesn't provide any such callback.

Is there any good way to find out when the video is being recorded?


You’re right: the delegate doesn’t receive any information on when video capture is happening. The easy solution is to simply roll your own camera controls—setting the showsCameraControls property to NO and providing your own controls in a custom view with the cameraOverlayView property—and have your “capture” button call the image picker controller’s -startVideoCapture and -stopVideoCapture methods, along with providing whatever notification you need to other parts of the app.