saveVideoToPhotosAlbum 保存视频到相册

saveVideoToPhotosAlbum ^6.8

保存视频到相册

#请求参数

Prop Type Comment
src String 视频文件路径(相对路径)

#请求参数

  • N/A

#引入接口模块

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

#参数代码示例

let params = {
  src: 'localVideos/test.mp4',
}

#接口调用示例

let params = { src: this.src }
bridge
  .saveVideoToPhotosAlbum(params)
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(err)
  })

#返回参数

  • 成功时返回
Prop Type Value
msg String -
code Number 0
  • 失败时返回
Prop Type Value Comment
code Number -7 文件不存在
msg String -

#返回示例

{
    "msg": "success",
    "code": 0
}
posted on 2024-12-27 09:33  AtlasLapetos  阅读(19)  评论(0)    收藏  举报