收藏
回答

微信小程序stopRecord()停止录制调用无反应

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug CameraContext.stopRecord 客户端 6.7.3 2.4.1

- 当前 Bug 的表现(可附上截图)

endVideo() {
                var that = this;
                console.log('停止录制')
                this.CameraContext.stopRecord({
                    success: function(res) {
                        console.log(res)
                        that.videoSrc=res.tempVideoPath;
                        that.VideoContext = wx.createVideoContext('answerVideo', that);
                        that.VideoContext.play();
                        that.recordIng = 'hide';
                        that.endRecord = 'show';
                        that.CameraContext=null;
                    },
                    fail:function(){
                        console.log('录制错误')
                    },
                    complete:function(){
                        console.log('调用结束')
                    }
                })
            },


- 预期表现

调用CameraContext.stopRecord()API执行其success回调函数

- 复现路径

ios端都有出现CameraContext.startRecord录制时长大于一分钟后调用CameraContext.stopRecord无反应

安卓端

- 提供一个最简复现 Demo

回答关注问题邀请回答
收藏

5 个回答

登录 后发表内容