将视频存入系统相册 1.3.1版本开始生效

使用说明

import { MUtils } from '@yl/super-jssdk';

MUtils.saveVideoToPhotosAlbum(optional)

参数说明

参数 类型 必填 作用
optional Object 必选参数

optional

参数 类型 必填 作用
path string 本地视频绝对路径(考虑兼容问题,建议mp4格式视频)

返回说明

参数 类型 作用
resolve Function 成功回调
reject Function 失败回调。参数为一个合法的json对象,例如:{"errCode": -1, "errMsg":"some explain of error."}。

代码示例

MUtils.saveVideoToPhotosAlbum({ 
  path: 'images/481976cf31315.jpg' 
}).then(res => {
  console.log('res', res);
}).catch(err => {
  console.log('err', err);
})

results matching ""

    No results matching ""