wx.getFileSystemManager().readFile()读取mp4文件真机调试报错?
发布于 5 年前 作者 wcai 11064 次浏览 来自 官方Issues

wx.createCameraContext() 录制一段视频,然后调用 wx.getFileSystemManager().readFile() 读取这段视频的本地路径,模拟器没问题,但预览或真机调试不走读取的方法,并且真机调试页面右方一直报警告和错误,然后自动恢复调试然后又错误。麻烦帮助解决一下或告知原因,我需要拿到拍摄视频数据加密后上传到后台。

ctx.stopRecord({

              success: function(res) {

                var tempFilePath = res.tempVideoPath

                // 读文件

                wx.getFileSystemManager().readFile({

                  filePath: tempFilePath,

                  encoding: ‘base64’,

                  success: function (readRes) {

}

                })

               }

})

2 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

遇到同样问题,问题解决了否,如何解决的?

回到顶部