请问兄弟解决了吗,我也遇到了同样的问题。贴子在这: https://developers.weixin.qq.com/community/minigame/doc/000c42d55b45586e4562ebadf66c00?fromCreate=1
GameRecorder.start() 没真正启动录制https://developers.weixin.qq.com/minigame/dev/guide/open-ability/game-recorder.html startRecord(){ if(wx.getGameRecorder){ console.log("start record"); var recorder = wx.getGameRecorder(); recorder.on('start', () => { // 真正开始录制后的 5 秒后结束录制 setTimeout(() => { console.log("stop record"); recorder.stop().catch(res =>{ console.log("stop error:"); console.log(res); }) }, 5000) }) recorder.on('stop', (res) => { console.log('对局回放时长: ${res.duration}'); window.wxplatform.shareRecord(); }) recorder.on('error', res =>{ const error = res.error console.log("recorder error:"); console.log(res); }) recorder.start() .catch(res =>{ console.log("start error:"); console.log(res); }) } } 调用上面函数 startRecord()后就只有一句日志: start record 证明start()函数并没有真正执行,也没捕抓到任何错误。完全不知到如何入手解决这个问题。我的设备是红米note 8 pro, 基础库是2.19.2
11-07