recordVideo 录制视频

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: 视频时长 } 请求参数

#接口调用示例

this.$bridge
    .recordVideo(params)
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })
// bridge v0.2.3起支持回调函数,回调函数可触发多次
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
posted on 2024-12-17 09:29  AtlasLapetos  阅读(30)  评论(0)    收藏  举报