我想使用音频插孔来控制我的Android手机相机的焦点。通常使用音频插孔拍照,或者我们可能将其称为快门。它是通过将麦克风端口和地面连接到图2所示的(我从。是否可以使用音频插孔进行缩放或焦点?说,就像我们操纵或重新安排图1中所述的那样?图1取自在这里。


I want to control zoom or focus of my Android phone's camera using audio jack. It is common to use audio jack to take picture or probably we may call it as shutter. It is done by connecting the mic port and the ground as shown in the picture 2 (I took it from here. It is not Android, but probably the same idea is possible with Android). Is it possible to do zoom or focus using the audio jack? Say, like we manipulate or rearrange it something like explained in picture 1? Picture 1 taken from here.
发布评论
评论(1)
android 规格对于音频插孔,这给了您音频插孔可以生成的输入/关键事件。您的相机应用程序应聆听这些事件并采取适当的操作。
如何创建硬件生成事件的是在这里
The Android specification for the audio Jack, this gives you the input/key events that can be generated by the audio jack. Your camera application should listen for these events and do the appropriate action.
How to create hardware to generate the events is here