# chooseVideo ^6.8
选择视频
# 请求参数
N/A
# 接口调用示例
this.$bridge
.chooseVideo()
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# 返回参数
- 成功时返回
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"
]
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# FAQ
ios端选择一个视频的时候 返回的是 "tempFilePaths":"" 字符串
{
"tempFilePaths": "localVideos/IMG_0003.MOV",
"code":0
}
1
2
3
4
2
3
4