mobile CCTV,mobile surveillance,police body worn cameras
标题:
调用
[打印本页]
author:
淘乐蓝莓
time:
2021-2-6 16:50
标题:
调用
请问客户在我们安卓系统做开发,怎么调用SOS键,GPS,NFC,还有PTT键
author:
coldflame
time:
2021-2-7 10:11
是哪个机器?
author:
coldflame
time:
2021-2-7 10:28
针对G7/C350执法仪,
按键键值:
27 拍照
89 标记文件
130 录像
173 录音
284 短按 切换IRCUT 长按SOS
286 PTT
切换IRCUT
if (DeviceManager.getInstance().isIRCutEnabled()) {
Log.d(TAG,"IRCUT 打开 ---> 关闭");
DeviceManager.getInstance().setInfraredBrightness(0);
DeviceManager.getInstance().setIRCutEnabled(false);
if (mpu.getCameraIndex() == MPU_INDEX_BACK_CAMERA)
DeviceManager.getInstance().setCameraMode(1);
else {
Log.d(TAG,"IRCUT 关闭 ---> 打开");
DeviceManager.getInstance().setInfraredBrightness(8);
DeviceManager.getInstance().setIRCutEnabled(true);
if (mpu.getCameraIndex() == MPU_INDEX_BACK_CAMERA)
DeviceManager.getInstance().setCameraMode(0);
}
Led
C350待机绿灯亮
C350拍照闪红灯
控制灯光方法:
DeviceManager.getInstance().setLedColor(0,false); (参数1 灯光值)(参数2 打开/关闭)
DeviceManager.getInstance().setLedColor(0xFF0000,false); //打开红灯
DeviceManager.getInstance().setLedColor(0,false); //关闭红灯
获取灯光值方法如下
public int getLedColorRgb(){
DeviceManager.getInstance().setLedColor(0,false); // 关闭其他灯
if (isCharging) { // 是否在充电的标志位
if (mpu.getPreviewEntity().isRecord()) { // 充电 + 录像
return 0xFF00FF;
} else if (mpu.getPreviewEntity().isAudio()) { // 充电 + 录音
return 0xFFFFFF;
} else {
return 0x0000FF; // 充电
}
} else {
if (mpu.getPreviewEntity().isRecord()) { // 录像
return 0xFF0000;
} else if (mpu.getPreviewEntity().isAudio()) { // 录音
return 0xFFFF00;
} else { // 待机
return 0x00FF00;
}
}
}
欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/)
Powered by Discuz! X3.2