7***@qq.com
7***@qq.com
  • 发布:2022-01-06 10:14
  • 更新:2022-01-06 10:14
  • 阅读:321

html5plus startVideoCaptureios端无法保存

分类:HTML5+

代码如下,安卓是可以保存的,ios保存需要其他操作吗
let cmr = plus.camera.getCamera()
let res = cmr.supportedVideoResolutions[0]
let fmt = cmr.supportedVideoFormats[0]
cmr.startVideoCapture(
function (path) {
plus.io.resolveLocalFileSystemURL(
path,
(entry) => {
console.log(entry.fullPath)
entry.file(function (file) {
console.log('size==' + file.size)
console.log('name==' + file.name)
})
},
(e) => {}
)
},
function (error) {
console.log('Resolve file URL failed: ' + e.message)
},
{
resolution: res,
format: fmt,
videoMaximumDuration: 10,
}
)

解决了,保存api是gallery

2022-01-06 10:14 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复