- start:fail onCameraFrame is not supported on your
iphone12真机测试调用相机返回不支持 faceRec(e) { wx.initFaceDetect({ success: (res) => { console.log(res) this.startFace() }, fail: (err) => { console.log(err) } }) }, startFace() { const context = wx.createCameraContext() const listener = context.onCameraFrame((res) => { console.log('>>>>>') }); if (wx.canIUse('CameraFrameListener.start')) { console.log('哈哈哈') listener.start({ success: () => { console.log('success') }, fail: (msg) => { console.log('fail>>>', msg) }, complete: () => { console.log('complete') } }) } else { console.log('嘤嘤嘤') } } [图片]
2021-11-22 - onCameraFrame is not supported on your device?
[图片] [图片] 代码片段:https://developers.weixin.qq.com/s/Djgom6mH7hvL
2021-11-30