Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MediaStore.EXTRA_DURATION_LIMIT Not working Nexus Devices?

Hi All one of the Application implemented duration of video capturing, i set duration is 10 sec.

But it's not working in Nexus Devices, Except Nexus it's working fine for All Devices Can any one knows what is the issue.

Here is the Code.

 final int durationLimit = 10;
 Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
 intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, durationLimit);
 startActivityForResult(intent, CAMERA_CODE);
like image 626
NagarjunaReddy Avatar asked Oct 18 '22 10:10

NagarjunaReddy


1 Answers

I also verified this issue exists only for Google Camera App whose Version is greater than "2.5.052(2005148-30)".

Currently, on Play store, Google Camera App version is "3.2.045(2821762-30)" by using this version you can easily reproduce this issue. Previously Google Camera EXTRA_DURATION_LIMIT was working on the V2.5.052.

like image 154
Sanjay Bhalani Avatar answered Nov 02 '22 12:11

Sanjay Bhalani