onCameraFrame停不下来?
示例代码如下:
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()无效,根本停不下来。
如论是用开发工具还是真机测试都是一样的结果,停不下来。
