为啥调用CameraContext.stopRecord 报错?

发布于 7 年前作者 olai7100 次浏览最后编辑 7 年前来自 issues

报错msg:“operateCamera:fail:stop error”。

手机型号华为p30 pro

一会可以一会又不行,昨天还可以,今天就不行了。。。

部分代码:

//开始录像

that.ctxstartRecord({

success: (res) => {

thisintervalTimeStopRecord =setTimeoutfunction () {

that.stopRecord();

}, 1700

},

})

//结束录像

stopRecord() {

this.ctxs.topRecord({

success: (res) => {

},

fail: (res) => {

},

})

},

结束录像就会走fail,返回错误信息:operateCamera:fail:stop error

2 回复
yuanjie
yuanjie1 楼6 年前

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

lsun
lsun2 楼6 年前

我的也是报这个错误,华为nova 5i pro。还有一个华为手机nova也是报这个错误,有时候报有时候没事