Appearance
关闭摄像头
方法名
close
用法
示例
js
if (this.$refs.refLevenUvcMultiCamera) {
this.$refs.refLevenUvcMultiCamera.close({
type: type
}, res => {
this.writeLog(JSON.stringify(res))
})
}参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 参数描述 |
|---|---|---|---|---|
| type | Integer | 是 | 无 | 摄像头位置,1.左侧,2.右侧,0.所有 |
回调
示例
json
{
"message": "",
"code": 0,
"data": {}
}回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| code | Integer | 返回类型,0.成功,其他:失败 |
