onCameraFrame停不下来?

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

示例代码如下:

var _this = this;
 const ctx = wx.createCameraContext();
    var listener = ctx.onCameraFrame((frame) => {
      //console.log(frame);
 
      listener.stop();
      //_this.listenerStop();
    });
    listener.start({
      complete:function(e){
        console.log('start');
      }

    });



问题:listener.start开始以后,调用listener.stop()无效,根本停不下来。

如论是用开发工具还是真机测试都是一样的结果,停不下来。

3 回复
xiuyingqin
xiuyingqin1 楼6 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

lei74
lei742 楼6 年前

请问您解决了吗,我也遇到了这个问题

lei14
lei143 楼4 年前

从日志可以看到stop是有执行的,只是没有停下来。

请官方核实并处理这个问题。