html52.com
我爱小程序-开发者交流社区

为啥调用CameraContext.stopRecord 报错?

报错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






网友回复

社区技术运营专员-灵芝:

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

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付