chooseVideo 选择视频

chooseVideo ^6.8

选择视频

#请求参数

N/A

#引入接口模块

import bridge from '@minix-iot/etsbridge-sdk'

#接口调用示例

bridge
  .chooseVideo()
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(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
}
posted on 2024-12-27 09:32  AtlasLapetos  阅读(6)  评论(0)    收藏  举报