Skip to content

设置镜像 1.4.0 ​

方法名 ​

setMirror

用法 ​

示例 ​

js
if (this.$refs.refLevenUvcMultiCamera) {
  this.$refs.refLevenUvcMultiCamera.setMirror({
    type: type,
    //镜像,0.正常,1.垂直,2.水平
    mirror: 1
  }, res => {
    this.writeLog(JSON.stringify(res))
  })
}

参数说明 ​

参数名参数类型是否必填默认值参数描述
typeInteger是无摄像头位置,1.左侧,2.右侧,0.所有
mirrorInteger否0镜像方式,0.正常,1.垂直镜像,2.水平镜像

回调 ​

示例 ​

json
{
    "message": "",
    "code": 0,
    "data": {}
}

回调说明 ​

参数名参数类型参数描述
messageString消息提示
dataObject数据对象
codeInteger返回类型,0.成功,其他:失败