相机错误 100 详细信息

发布于 2024-12-08 18:32:42 字数 562 浏览 0 评论 0原文

谁能告诉我Camera Error 100到底是什么?

在拍照的时候,有时我会得到它。当我调用camera.takepicutre();并调用快门和原始回调,但未调用jpeg回调时,就会发生这种情况。

我只想知道 Camera Error 100 到底是什么以及它何时生成。 已经看到了原始的 android 相机代码,但没有找到 Camera Error 100 。 而这个 StackOverflow 答案,却找不到任何帮助。因为大多数时候我都能得到图片,但有时我会遇到这个错误。 在查看 Android 开发者网站后,他们说释放相机资源并开始新的资源。但还是没能找到背后的原因?

Can anyone tell me what exactly Camera Error 100 is?

At the time of taking picture sometimes I am getting it. It happened when I called camera.takepicutre(); and shutter and raw callback are called, but jpeg-callback is not getting called.

I just want to know what exactly Camera Error 100 is and when it is generated.
Already saw the original android camera code, but didn't find Camera Error 100 there.
And this StackOverflow answer, but couldn't find any help. Because most of the time I am able to get the picture, but sometimes I am getting this error.
After seeing the Android developer site they are saying release the camera resource and start a new one. But still didn't able to find the reason behind that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怎言笑 2024-12-15 18:32:42

也许您使用相机作为此命令

camera.stopPreview();
camera.takePicture(.....);
camera.startPreview();

但这是错误的。
你应该使用它,因为

camera.startPreview();  //ignore it,if you have started it.
camera.takePicture(.....);
camera.startPreview();

我已经尝试过了,效果很好!

maybe you used camera as this order

camera.stopPreview();
camera.takePicture(.....);
camera.startPreview();

but that is false.
you should use it as

camera.startPreview();  //ignore it,if you have started it.
camera.takePicture(.....);
camera.startPreview();

I have tried it,it works fine!

感悟人生的甜 2024-12-15 18:32:42

相机错误 100 - “媒体服务器死亡。在这种情况下,应用程序必须释放相机对象并实例化一个新对象。”

Camera Error 100 - "Media server died. In this case, the application must release the Camera object and instantiate a new one."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文