使用wx.chooseVideo压缩处理的太慢了?

发布于 6 年前作者 guiying504634 次浏览最后编辑 6 年前来自 issues

使用很多Android手机在选择视频中 压缩处理太慢  选择一2Mb文件 压缩处理时长达到2-3min 一直转圈 提示视频加载中等字样,这对于用户体验十分不好,请问官方现在有没有什么方法解决的呢?

wx.chooseVideo({

sourceType: [‘album’, ‘camera’],

maxDuration: 60,

camera: ‘back’,

compressed: true,

success(res) {

console.log(res)

that.data.fileType = ‘video’;

that.setData({

mediaSrc: res.tempFilePath,

duration: res.duration,

mediaSize: res.size

})

},

fail: function(res) {

console.log(res)

}

2 回复
jlong
jlong1 楼6 年前

目前安卓的解析的问题,后续会优化这部分

lei28
lei282 楼4 年前

视频压缩的质量也能优化一下就好了