I need to ensure that my AVCaptureSession runs for 15 seconds before being stopped. How could I go about doing this? I'm hesitant about using wait or sleep because I'm fairly sure that it would halt the intake of input. What can I use to wait 15 seconds before I run the stop command?
Sample code:
[self.session startRunning];
// wait 15 seconds
[self.session stopRunning];