Appearance
初始化配置
配置方式
js
//配置
config: {
//设置视图的背景颜色,可以为空,如"#ffffff"
rootBgColor: "#CCCC99",
//视图的圆角值
rootRadius: 10,
//左侧摄像头圆角值
leftCameraRadius: 10,
//右侧摄像头圆角值
rightCameraRadius: 10,
//右侧摄像头距离左侧摄像头的距离
rightMarginLeft: 10,
//视图的内部padding
rootPadding: [10, 10, 10, 10],
//左侧摄像头旋转角度
leftRotation: 90,
//右侧摄像头旋转角度
rightRotation: 90,
//图片文件保存目录
pictureDir: "/storage/emulated/0/Pictures/LevenUvcCamera/",
//视频保存目录
videoDir: "/storage/emulated/0/Movies/LevenUvcCamera/",
//左侧默认分辨率
leftSize: {
width: 800,
height: 600
},
//右侧默认分辨率
rightSize: {
width: 800,
height: 600
}
},参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 参数描述 |
|---|---|---|---|---|
| rootBgColor | String | 否 | 无 | 设置视图的背景颜色 |
| rootRadius | Integer | 否 | 无 | 视图的圆角值 |
| leftCameraRadius | Integer | 否 | 无 | 左侧摄像头圆角值 |
| rightCameraRadius | Integer | 否 | 无 | 右侧摄像头圆角值 |
| rightMarginLeft | Integer | 否 | 无 | 右侧摄像头距离左侧摄像头的距离 |
| rootPadding | Integer[] | 否 | 无 | 视图的内部padding,数组内部数据[上,右,下,左],示例:[10, 10, 10, 10] |
| leftRotation | Integer | 否 | 无 | 左侧摄像头旋转角度,可选值:0,90,180,270 |
| rightRotation | Integer | 否 | 无 | 右侧摄像头旋转角度,可选值:0,90,180,270 |
| pictureDir | String | 否 | 无 | 图片文件保存目录 |
| videoDir | String | 否 | 无 | 视频保存目录 |
| leftSize | Object | 否 | 无 | 左侧默认分辨率 |
| rightSize | Object | 否 | 无 | 右侧默认分辨率 |
