I am developing an iPhone App. In that, there is a requirement for Pausing and resuming the camera. So i used AVFoundation
for that instead of using UIIma
You can't change the captureDevice mid-session. And you can only have one capture session running at a time. You could end the current session and create a new one. There will be a slight lag (maybe a second or two depending on your cpu load).
I wish Apple would allow multiple sessions or at least multiple devices per session... but they do not... yet.