ios wx.compressVideo压缩前后大小不变问题
发布于 6 年前 作者 minghu 6415 次浏览 来自 问答

安卓手机使用wx.compressVideo压缩没有问题就是慢了点。。iOS使用wx.compressVideo压缩视频的大小基本没有变化

wx.compressVideo({
            bitrate720,
            fps60,
            quality'medium',
            resolution1,
            src: videoList[0].tempFilePath,
            success(comRes) {
              console.log("comRes=-==", comRes)
              if (comRes.size / 1024 > 45) {
                that.setUpload(2)
              } else {
                console.log("压缩完成"new Date())
                videoList[0] = comRes;
                that.uploading(imgList, videoList, data)
              }
            },
            fail(comErr) {
              that.setUpload(2)
              console.log("comErr=-==", comErr)
            }
          })
回到顶部