Open moyergo opened 6 months ago
3.11.2;Android 14
可以
在执行压缩后,调用onCallback时,第一个参数不能用uri.getPath(),否则内部“LocalMedia media = queue.get(srcPath)”为null。需要用 uri.toString()。
setCompressEngine(CompressFileEngine { context, source, call -> source.forEach { uri -> // 压缩逻辑。。。忽略 /* 在调用onCallback时,第一个参数不能用uri.getPath(),否则内部“LocalMedia media = queue.get(srcPath)”为null。需要用 uri.toString()。*/ call?.onCallback(it.toString(), compressFile.absolutePath) } })
Current use version?
当前使用的版本是多少?
Will this problem occur in demo?
Demo能否复现这问题?
Describe the problem or provide an error log?
在执行压缩后,调用onCallback时,第一个参数不能用uri.getPath(),否则内部“LocalMedia media = queue.get(srcPath)”为null。需要用 uri.toString()。