Appearance
获取支持的分辨率 1.5.0
方法名
getSupportedSizeList
用法
示例
js
if (this.$refs.refLevenUvcMultiCamera) {
this.$refs.refLevenUvcMultiCamera.getSupportedSizeList({
type: type
}, res => {
this.writeLog(JSON.stringify(res))
})
}参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 参数描述 |
|---|---|---|---|---|
| type | Integer | 是 | 无 | 摄像头位置,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
]
}
]
}
}回调说明
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| message | String | 消息提示 |
| data | Object | 数据对象 |
| data.left | Object[] | 左侧摄像头数据 |
| data.left.type | Integer | 类型 |
| data.left.fps | Integer | 帧率 |
| data.left.height | Integer | 高度 |
| data.left.width | Integer | 宽度 |
| data.left.fpsList | Integer[] | 帧率列表 |
| data.right | Object[] | 右侧摄像头数据 |
| data.right.type | Integer | 类型 |
| data.right.fps | Integer | 帧率 |
| data.right.height | Integer | 高度 |
| data.right.width | Integer | 宽度 |
| data.right.fpsList | Integer[] | 帧率列表 |
| code | Integer | 返回类型,0.成功,其他:失败 |
