简体   繁体   English

Unity插件Android本机摄像头

[英]Unity plugin android native camera

I wrote a android plugin for processing camera preview and turn the flash on, but then I found out that for some inexplicable reason plugin does not work properly on some smartphones. 我写了一个用于处理相机预览并打开闪光灯的android插件,但后来我发现由于某些莫名其妙的原因,该插件在某些智能手机上无法正常工作。 That is not the flash is activated and not called handler preview. 那不是激活闪光灯,不称为处理程序预览。 Even on different smartphones from one version of Android (4.1.3) plugin behaves differently.. what could be the causes of bug? 即使从一个版本的Android(4.1.3)插件在不同的智能手机上,其行为也有所不同..造成此错误的原因可能是什么? where do dig? 在哪里挖? Please help :( 请帮忙 :(

Since there are so many diffirent Camera versions and variations on Android its quite difficult to debug. 由于Android上有太多不同的Camera版本和版本,因此很难调试。 However you could try and go through some of the existing plugins for using the Camera - Camera Capture Kit for Unity is a support for turning on the flash/torch and is tested on a large array of Android phones and works on both iOS and Android. 但是,您可以尝试使用一些现有的插件来使用相机-Unity的Camera Capture Kit支持打开闪光灯/手电筒,并且已在众多Android手机上进行了测试,并且可以在iOS和Android上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM