Cameraframelistener 真机调试监听失败
发布于 5 年前 作者 xiaxu 8384 次浏览 来自 官方Issues
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

listener.start()回调fail

  • 复现路径
  • 提供一个最简复现 Demo

Page({

onLoad() {

this.ctx = wx.createCameraContext()

const l = this.ctx.onCameraFrame((frame)=>{

console.log(frame)

})

listener.start({

success: function(){

console.log(‘listener start’)

},

fail: function(){

console.log(‘listener fail’)

}

})

}

})

3 回复

同问,真机调试Cameraframelistener调用不起作用

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

同问,有解决的方案吗?这样每次都打包调试太麻烦了~~

回到顶部