title: Access preview frame from MediaCapture
body: <p>I would like to grab the preview frames that are displayed inside my <code>CaptureElement</code>  xaml element. The <code>source</code> of my <code>CaptureElement</code> is set to a <code>MediaCapture</code> object and I use the <code>StartPreview()</code> method to start displaying the camera. I would like to access the frames that are being shown <strong>without</strong> saving them to an img or video file. The goal is to capture 10 fps from the preview and send each frame to another class that accepts <strong>byte[]</strong>. </p>
  
  <p>I tried using the <code>CapturePhotoToStorageFileAsync</code> method however this is not a feasible option as I do not want to take 10 actual images / second. I also do not want to use <code>ScreenCapture</code> as it stores what is captured into a video file. Ideally I do not want to store any media files temporarily on the phone. After looking at the <a href="https://msdn.microsoft.com/en-us/library/ie/windows.media.capture.mediacapture" rel="nofollow">msdn</a> for <code>MediaCapture</code>, I noticed there's a method called <code>GetPreviewFrameAsync()</code> however this method does not exist inside Windows Phone 8.1. I also stumbled on this <a href="https://dev.windowsphone.com/en-US/OEM/docs/Driver_Components/Access_preview_frames_from_Windows.Media.Capture_in_managed_code" rel="nofollow">example</a> however I do not completely understand how it works.</p>
  
  <p>Any suggestions on how to approach this is greatly appreciated.</p>