调用CameraFrameListener.start()真机调试报错
const context = wx.createCameraContext()
const listener = context.onCameraFrame((frame) => {
console.log(frame.data instanceof ArrayBuffer, frame.width, frame.height)
// this.setData({text:frame.data instanceof ArrayBuffer})
})
listener.start({
success:function(){
},
fail:function(res){
console.log(11111111)
console.log(res)
}
})
真机调试报错errMsg: "start:fail :illegal state:-2
我看好多人都提出了CameraFrameListener的问题,是没解决还是我的错误和被人不一样