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);
this.timeoutID = setTimeout(async function(){
await share.recordFinishToAlbum(options);
console.log("record finish");
}, 8000);
},