recordVideo ^4.4.0
#请求参数
| Prop |
Type |
Required |
Default |
Description |
param |
Object |
Y |
{} 属性: limitCount:{ Type: Number, Default: 1 Description: 视频数量 } limitSize:{ Type: Number, Default: 1 Description: 视频大小 } type:{ Type: String, Default: MP4 Description: 视频格式 } videoDuration:{ Type: Number, Default: 60 Description: 视频时长 } |
请求参数 |
#接口调用示例
const params ={
limitCount: 2,
limitSize: 40960,
type: 'mp4',
}
this.$bridge
.recordVideo(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
// v0.3.5 支持回调函数,可重复触发执行
this.$bridge
.recordVideo(
params,
res => {
this.$alert(res)
},
err => {
this.$toast(err)
}
)
#返回参数
| Prop |
Type |
Default |
Description |
code |
Number |
N/A |
0 |
data |
String |
N/A |
|
| Prop |
Type |
Default |
Description |
errorCode |
Number |
N/A |
|