From 862a50f201f9776a3d1cd7ba91da8e2f97fdcb80 Mon Sep 17 00:00:00 2001 From: shuboxu Date: Fri, 25 Aug 2023 06:09:22 +0000 Subject: [PATCH] update en/application-dev/media/video-recording.md. Signed-off-by: shuboxu --- en/application-dev/media/video-recording.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/application-dev/media/video-recording.md b/en/application-dev/media/video-recording.md index 1a3e802dac..dca48e7c21 100644 --- a/en/application-dev/media/video-recording.md +++ b/en/application-dev/media/video-recording.md @@ -78,7 +78,7 @@ Read [AVRecorder](../reference/apis/js-apis-media.md#avrecorder9) for the API re } let avProfile: AVProfile = { fileFormat: media.ContainerFormatType.CFT_MPEG_4, // Video file encapsulation format. Only MP4 is supported. - videoBitrate : 100000, // Video bit rate. + videoBitrate: 100000, // Video bit rate. videoCodec: media.CodecMimeType.VIDEO_AVC, // Video file encoding format. Both MPEG-4 and AVC are supported. videoFrameWidth: 640, // Video frame width. videoFrameHeight: 480, // Video frame height. @@ -211,7 +211,7 @@ export class VideoRecorderDemo { // 2. Obtain the file descriptor of the recorded file. The obtained file descriptor is passed in to the URL in avConfig. The implementation is omitted here. // 3. Set recording parameters to complete the preparations. await this.avRecorder.prepare(this.avConfig); - this.videoOutSurfaceId = await this.avRecorder.getInputSurface(); + this.videoOutSurfaceId = await this.avRecorder.getInputSurface(); // 4. Complete camera-related preparations. await this.prepareCamera(); // 5. Start the camera stream output. -- GitLab