I'm using LG Nexus(6.0). When I have use the camera to capture video using below code.
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
fileUri = getOutputMediaFileUri(MEDIA_TYPE_VIDEO);
// set video quality
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 30);
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
I have given its duration limit using below code.
intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 30);
The camera seems to ignore the duration limit. On any 6.0 device, it does not work. Is there an another way to limit the capture video duration on 6.0 + devices?