title: Saving a screen recording with RPScreenRecorder start capture
body: <p>I am attempting to use RPScreenRecorder.shared().startCapture to save a screen recording to firebase. I know how to save videos from AVCapture but cant figure out how to process The CMSampleBuffer to create a file to save to firebase. Please help I cant find documentation on this anywhere yet, here is the method call:</p>
  
  <pre><code> let recorder = RPScreenRecorder.shared()
   if #available(iOS 11.0, *) {
              recorder.startCapture(handler: { (videoBuffer, bufferType, error) in
                  print(videoBuffer)
                  print(bufferType)
  
              }, completionHandler: { (error) in
  
              })
          } else {
              // Fallback on earlier versions
          }
  </code></pre>
  
  <p>Even being pointed in the right direction would be helpful, I am lost at how to save THE sample BUFFER as a file that can be played as a video</p>