title: How to rename the video recorded by MediaStore.ACTION_VIDEO_CAPTURE with Kotlin
body: <p>I'm working on a simple app that records video for later process. How to store the recorded videos using predefined name? I'm working with API 29 or above, so the <code>WRITE_EXTERNAL_STORAGE</code> is not longer valid, what the current solution for this task.</p>
  <p>I've tried to use <code>MediaStore.EXTRA_OUTPUT</code>, but couldn't figure out the path part. Here's code I wrote.</p>
  <pre><code> val intent = Intent(MediaStore.ACTION_VIDEO_CAPTURE)
   intent.putExtra(&quot;android.intent.extra.durationLimit&quot;, 5)
   intent.putExtra(MediaStore.EXTRA_OUTPUT, recordPath)  # how to set the path. 
   startActivityForResult(intent, 222)
  </code></pre>
  <p>To clarify, I would like to save files using predefined pattern, not the automatically generated name by <code>MediaStore</code>.</p>