- 当前 Bug 的表现(可附上截图)
小程序chooseVideo上传视频,设置
compressed: true
压缩视频在iOS和Android端分辨率不同
- 预期表现
压缩后的视频应该是同样的分辨率
- 复现路径
- 提供一个最简复现 Demo
wx.chooseVideo({
sourceType: ['camera'],
maxDuration: 10,
compressed: true,
success: (res) => {
console.log(res)
// duration,height,tempFilePath,width
if (res.duration > 10) {
showToast('text', '建议10秒左右的视频')
this.calculateHeight();
return
}
this.sendVideoToNos(res)
console.log(res.width,res.height)
},
})
这是可能的,不同的机型系统可能存在差异,和源视频的参数也有关。
可是这是通过小程序的api压缩的,我知道不同手机分辨率不一致,但是使用压缩就是想要达到一致的16:9的比例,最后Android和iOS还是出现了不一样的比例