gpt4 book ai didi

Android Nexus 6 相机忽略 EXTRA_VIDEO_QUALITY

转载 作者:行者123 更新时间:2023-11-30 01:16:49 24 4
gpt4 key购买 nike

我这样调用 Nexus 6 上的相机:

Intent videoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
videoIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // Low Quality
videoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(currentPath));
startActivityForResult(videoIntent, REQUEST_CODE);

但无论我将 MediaStore.EXTRA_VIDEO_QUALITY 的值设置为什么,它总是需要高质量的视频(5 秒的视频总是大约 8 MB)

其他设备和相机应用程序按预期工作,我认为它只是在升级到 Android 6.0 后才开始发生。

我也在 CamcorderProfile 中尝试了不同的值,但它们并没有什么不同。

最佳答案

Other devices and camera apps work as expected

有数千种 Android 设备型号和数百种相机应用。我怀疑您还没有全部尝试过。 EXTRA_VIDEO_QUALITY是提示,不是命令。您不能依赖任何特定的相机应用程序(无论是预装的还是用户安装的)来兑现额外费用。

I have tried the different values in CamcorderProfile too, and they don't make a difference.

CamcorderProfile不用作 ACTION_VIDEO_CAPTURE 的一部分.如果您指的是使用 MediaRecorder直接,您可能希望打开一个单独的 Stack Overflow 问题,您可以在其中提供用于配置 MediaRecorder 的代码。 .

关于Android Nexus 6 相机忽略 EXTRA_VIDEO_QUALITY,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37737087/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com