onCameraFrame停不下来?
发布于 5 年前 作者 vkong 10492 次浏览 来自 官方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 回复

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

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

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

回到顶部