// 录制配置,以下是默认值
// 这里建议根据实际情况,等比缩放`width`和`height`,防止丢帧
const options: XrFrame.IShareRecordOptions = {
fps: 30,
width: scene.width,
height: scene.height,
videoBitsPerSecond: 1000
};
// 启动录制
await scene.share.recordStart(options);
// 停止录制,直接保存到相册
await scene.share.recordFinishToAlbum(options);
保存到本地是视频 么有声音,是没提供录音频的能力,还是我操作的不对?
是的 没有声音的