代码如下,安卓是可以保存的,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
0 个回复