Skip to content

获取支持的分辨率 1.5.0

方法名

getSupportedSizeList

用法

示例

js
if (this.$refs.refLevenUvcMultiCamera) {
  this.$refs.refLevenUvcMultiCamera.getSupportedSizeList({
    type: type
  }, res => {
    this.writeLog(JSON.stringify(res))
  })
}

参数说明

参数名参数类型是否必填默认值参数描述
typeInteger摄像头位置,1.左侧,2.右侧,0.所有

回调

示例

json
{
  "message": "",
  "code": 0,
  "data": {
    "left": [
      {
        "type": 7,
        "fps": 30,
        "height": 720,
        "width": 1280,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 120,
        "width": 160,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 144,
        "width": 176,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 240,
        "width": 320,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 288,
        "width": 352,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 480,
        "width": 848,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 600,
        "width": 800,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 540,
        "width": 960,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 720,
        "width": 1280,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 480,
        "width": 640,
        "fpsList": [
          30
        ]
      }
    ],
    "right": [
      {
        "type": 7,
        "fps": 30,
        "height": 720,
        "width": 1280,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 120,
        "width": 160,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 144,
        "width": 176,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 240,
        "width": 320,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 288,
        "width": 352,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 480,
        "width": 848,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 600,
        "width": 800,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 540,
        "width": 960,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 720,
        "width": 1280,
        "fpsList": [
          30
        ]
      },
      {
        "type": 7,
        "fps": 30,
        "height": 480,
        "width": 640,
        "fpsList": [
          30
        ]
      }
    ]
  }
}

回调说明

参数名参数类型参数描述
messageString消息提示
dataObject数据对象
data.leftObject[]左侧摄像头数据
data.left.typeInteger类型
data.left.fpsInteger帧率
data.left.heightInteger高度
data.left.widthInteger宽度
data.left.fpsListInteger[]帧率列表
data.rightObject[]右侧摄像头数据
data.right.typeInteger类型
data.right.fpsInteger帧率
data.right.heightInteger高度
data.right.widthInteger宽度
data.right.fpsListInteger[]帧率列表
codeInteger返回类型,0.成功,其他:失败