绝对路径转换 plus.io.convertAbsoluteFileSystem() 在苹果手机上得到null
//如果选择的是拍摄需要转换一下路径
console.error("视频返回信息", ret)
let thumbPath = plus.io.convertAbsoluteFileSystem(ret.thumbPath)
let outPath = plus.io.convertAbsoluteFileSystem(ret.outPath)
ret={
outPath: "/var/mobile/Containers/Data/Application/014F570C-7ACD-41DE-9DEC-2930BC9F1BC5/tmp/VID_20210513_192414.mp4"
thumbPath: "/var/mobile/Containers/Data/Application/014F570C-7ACD-41DE-9DEC-2930BC9F1BC5/tmp/VID_20210513_192414.png"
}
绝对路径转换 plus.io.convertAbsoluteFileSystem() 在苹果手机上得到null
thumbPath /var/mobile/Containers/Data/Application/014F570C-7ACD-41DE-9DEC-2930BC9F1BC5/tmp/VID_20210513_185808.png null
直接加file:// 没有读取权限
0 个回复