- 调用 xr-scene.share.recordStart() 失败?
[图片] // 开始录制 recordStart: async function() { console.log("share.recordState="+this.scene.share.recordState); const xrFrameSystem = wx.getXrFrameSystem(); if (this.scene.share.recordState === xrFrameSystem.EShareRecordState.Recording) { console.log("正在录制"); return; } //录制参数 const options: XrFrame.IShareRecordOptions = { fps: 30, width: this.scene.width, height: this.scene.height, videoBitsPerSecond: 1000 }; //启动录制 const share = this.scene.share; await share.recordStart(options); //这句代码有时会失败。不是必失败。 //录制x秒后自动停止,并保存到相册 this.timeoutID = setTimeout(async function(){ await share.recordFinishToAlbum(options); console.log("record finish"); }, 8000); },
2024-11-11 - 开发者工具无法触发scl
升级最新工具版本重新打开项目
2023-04-18