chooseVideo 选择视频
chooseVideo ^6.8
选择视频
#请求参数
N/A
#接口调用示例
this.$bridge
.chooseVideo()
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
- 成功时返回
| Prop | Type | Value |
|---|---|---|
tempFilePaths |
Array |
- |
code |
Number |
0 |
- 失败时返回
| Prop | Type | Value | Comment |
|---|---|---|---|
code |
Number |
-11 |
用户取消操作 |
msg |
String |
#返回示例
{
"tempFilePaths": [
"localVideos/VID_20200724_164028.mp4",
"localVideos/VID_20200724_164028.mp4"
]
}
#FAQ
ios端选择一个视频的时候 返回的是 "tempFilePaths":"" 字符串
{
"tempFilePaths": "localVideos/IMG_0003.MOV",
"code":0
}
浙公网安备 33010602011771号