title: How to identify whether a video is recorded or picked form savedPhotosAlbum inside imagePickerController(_: didFinishPickingMediaWithInfo:) method
body: <p>In my swift application, I have a “Record Video” functionality as well as a “Play Video” functionality. 
  I have used the delegate method <a href="https://developer.apple.com/documentation/uikit/uiimagepickercontrollerdelegate/1619126-imagepickercontroller" rel="nofollow noreferrer">imagePickerController(_:didFinishPickingMediaWithInfo:)</a> to handle both the functionalities. In each case, the whole code inside the function is running.</p>
  
  <pre><code>func imagePickerController(_ picker: UIImagePickerController, 
        didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {
        //code
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/5RvEt.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5RvEt.jpg" alt="imagepickercontroller preview video"></a></p>
  
  <p>Within this function, how can I specifically know whether the video I am handling is a <strong>recorded</strong> one or <strong>picked</strong> from the savedPhotosAlbum?</p>