本文介绍了MediaStore.EXTRA_DURATION_LIMIT无法使用Nexus设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,所有该应用程序都实现了视频捕获的持续时间,我将持续时间设置为10秒。

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

但是它在Nexus设备中不起作用,除了Nexus以外,它都可以正常工作适用于所有设备谁能知道问题所在。

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.

这里是代码。

 final int durationLimit = 10;
 Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
 intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, durationLimit);
 startActivityForResult(intent, CAMERA_CODE);


推荐答案

我还验证了此问题仅适用于Google Camera App其版本大于 2.5.052(2005148-30)。

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

当前,在Play商店中,Google Camera App版本为 3.2.045(2821762-30) ),则可以轻松重现此问题。以前,Google Camera EXTRA_DURATION_LIMIT正在使用V2.5.052。

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.

这篇关于MediaStore.EXTRA_DURATION_LIMIT无法使用Nexus设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 20:12