I am using the android.provider.MediaStore.ACTION_VIDEO_CAPTURE
. I was wondering if there is a way to change the maximum time allowed per recording. I TRIED ADDING
Here's a Kotlin update to launch ACTION_VIDEO_CAPTURE
Intent with EXTRA_DURATION_LIMIT
set to 60 seconds. As for putExtra(MediaStore.EXTRA_DURATION_LIMIT, 60)
is taking in seconds as the value for the duration limit.
val recordVideoIntent = Intent(MediaStore.ACTION_VIDEO_CAPTURE)
recordVideoIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 60)
startActivityForResult(recordVideoIntent, INTENT_VIDEO_RECORD_REQUEST)