Appearance
监听摄像头按钮 1.5.2
方法名
setButtonCallback
用法
示例
js
if (this.$refs.refLevenUvcCamera) {
this.$refs.refLevenUvcCamera.setButtonCallback(res => {
this.writeLog(JSON.stringify(res))
})
}参数说明
无
回调
示例
json
{
"message": "",
"code": 0,
"data": {
"button": 1,
"status": 1
}
}回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.button | Integer | 按钮标识 |
| data.button | Integer | 状态 |
| code | Integer | 返回类型,0.成功,其他:失败 |
