Skip to content

加载成功

方法名

onAttach

用法

示例

js
onAttach(e) {
    console.log("onDestroy:" + JSON.stringify(e))
}

参数说明

回调

示例

json
{
  "index":1,
  "device": {
    "productId": 12337,
    "productName": "RXGD-CAMERA",
    "serialNumber": "200901010001",
    "deviceName": "/dev/bus/usb/003/003",
    "vendorId": 3034,
    "deviceId": 3003
  }
}

回调说明

参数名参数类型参数描述
indexInteger摄像头索引,1.左侧,2.右侧
deviceObject当前摄像头信息
device.productIdInteger产品id
device.productNameString产品名称
device.serialNumberString串口号
device.deviceNameString设备名称
device.vendorIdInteger厂家id
device.deviceIdInteger设备id