camera组件录像后上传,后台得到旋转90度(后置摄像头)
使用该接口
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) { } }) }}) |
