camera组件录像后上传,后台得到旋转90度(后置摄像头)
发布于 6 年前 作者 ming29 11167 次浏览 来自 官方Issues

使用该接口

wx.createCameraContext(this).startRecord

录一段视频后,上传到后台,实际偏转-90°。


测试机型:三星S9 谷歌2。均为Android 9的版本


wx.createCameraContext(this).stopRecord({
  success: function (res) {
    console.log(res)
  },
  fail: function (res) {
    console.log(res)
  },
  complete: function (res) {
    console.log('complete!')
    wx.uploadFile({
      url: 'xxxxxx', //仅为示例,非真实的接口地址
      filePath: res.tempVideoPath,
      name: 'file',
      formData: {
        'imgX': that.data.imgX,
        'imgY': that.data.imgY,
        'imgW': that.data.imgW,
        'imgH': that.data.imgH
      },
      success(res) {
 
        console.log('返回结果' + res.data)
      },
      fail(res) {
      
     
      }
    })
  }
})
1 回复

微信版本更新至最新版本看看,问题还存在,提供机型,微信版本,基础库版本,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部