From 08120c6007035eb2f693573ee9ffbef70f6ea507 Mon Sep 17 00:00:00 2001 From: shuboxu Date: Fri, 25 Aug 2023 04:08:27 +0000 Subject: [PATCH] update zh-cn/application-dev/media/video-recording.md. Signed-off-by: shuboxu --- .../application-dev/media/video-recording.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/zh-cn/application-dev/media/video-recording.md b/zh-cn/application-dev/media/video-recording.md index 157b312af3..bc66eb34a2 100644 --- a/zh-cn/application-dev/media/video-recording.md +++ b/zh-cn/application-dev/media/video-recording.md @@ -63,18 +63,18 @@ AVRecorder详细的API说明请参考[AVRecorder API参考](../reference/apis/js ```ts class AVProfile { - fileFormat: media.ContainerFormatType; - videoBitrate: number; - videoCodec: media.CodecMimeType; - videoFrameWidth: number; - videoFrameHeight: number; - videoFrameRate: number; + fileFormat: media.ContainerFormatType; + videoBitrate: number; + videoCodec: media.CodecMimeType; + videoFrameWidth: number; + videoFrameHeight: number; + videoFrameRate: number; } class AVConfig { - videoSourceType: media.VideoSourceType; - profile: AVProfile; - url: string; - rotation: number; + videoSourceType: media.VideoSourceType; + profile: AVProfile; + url: string; + rotation: number; } let avProfile: AVProfile = { fileFormat : media.ContainerFormatType.CFT_MPEG_4, // 视频文件封装格式,只支持MP4 @@ -103,9 +103,9 @@ AVRecorder详细的API说明请参考[AVRecorder API参考](../reference/apis/js 输入源模块通过SurfaceID可以获取到Surface,通过Surface可以将视频数据流传递给AVRecorder,由AVRecorder再进行视频数据的处理。 ```ts - avRecorder.getInputSurface().then((surfaceId) => { + avRecorder.getInputSurface().then((surfaceId: string) => { console.info('avRecorder getInputSurface success') - }, (error) => { + }, (error: Error) => { console.error('avRecorder getInputSurface failed') }) ``` -- GitLab