title: How to get both the video output and full photo resolution image in AVFoundation Framework
body: <p>I use  a capture session to coordinate data flow as the apple developer document described.
  I want to get the video data to verify if the image is good enough to take.
  If the condition is met, I want to immediately take the Full resolution photo.</p>
  
  <p>However full photo resolution is not supported for video output.
  So I have to set the AVCapture sessionPreset to AVCaptureSessionPresetLow to capture video image data,
  then reconfigure the sessionPreset to AVCaptureSessionPresetPhoto when the condition is met.
  But the reconfiguration takes about two to three seconds, and does not meet the real-time requirements.</p>
  
  <p>If I use two AVCaptureSessions, one for the video capture, the other for the capture the still image,
  then it seemed not work.</p>
  
  <p>Does anybody have more ideas?
  Thank you.</p>