From b24451839a528d8f7efe762ca8bb5950fd6bf92e Mon Sep 17 00:00:00 2001 From: x30034819 Date: Thu, 4 May 2023 12:10:28 +0800 Subject: [PATCH] fixed 82c2320 from https://gitee.com/xieyijun3/docs/pulls/17829 avplayer seekmode Signed-off-by: x30034819 Signed-off-by: x30034819 Change-Id: I4c6f7020f09602ff203289d5af6cb439152819a6 --- .../application-dev/reference/apis/js-apis-media.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-media.md b/zh-cn/application-dev/reference/apis/js-apis-media.md index 4b115a4f4c..ef55557687 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-media.md +++ b/zh-cn/application-dev/reference/apis/js-apis-media.md @@ -2506,8 +2506,8 @@ avRecorder.off('error'); | videoSourceType | [VideoSourceType](#videosourcetype9) | 否 | 选择录制的视频源类型。选择视频录制时必填。 | | profile | [AVRecorderProfile](#avrecorderprofile9) | 是 | 录制的profile,必要参数。 | | url | string | 是 | 录制输出URL:fd://xx (fd number) ![img](figures/zh-cn_image_url.png),必要参数。 | -| rotation | number | 否 | 录制的视频旋转角度,仅支持0,90,180,270。 | -| location | [Location](#location) | 否 | 录制的地理位置。 | +| rotation | number | 否 | 录制的视频旋转角度,仅支持0,90,180,270,默认值为0。 | +| location | [Location](#location) | 否 | 录制的地理位置,默认不记录地理位置信息。 | 通过audioSourceType和videoSourceType区分纯音频录制、纯视频录制或音视频录制。纯音频录制时,仅需要设置audioSourceType;纯视频录制时,仅需要设置videoSourceType;音视频录制时,audioSourceType和videoSourceType均需要设置。 @@ -3343,9 +3343,9 @@ videoRecorder.on('error', (error) => { // 设 | audioSourceType | [AudioSourceType](#audiosourcetype9) | 是 | 视频录制的音频源类型。 | | videoSourceType | [VideoSourceType](#videosourcetype9) | 是 | 视频录制的视频源类型。 | | profile | [VideoRecorderProfile](#videorecorderprofile9) | 是 | 视频录制的profile。 | -| rotation | number | 否 | 录制视频的旋转角度。 | -| location | [Location](#location) | 否 | 录制视频的地理位置。 | -| url | string | 是 | 视频输出URL:fd://xx (fd number)
![](figures/zh-cn_image_url.png) | +| rotation | number | 否 | 录制的视频旋转角度,仅支持0,90,180,270,默认值为0。 | +| location | [Location](#location) | 否 | 录制视频的地理位置,默认不记录地理位置信息。 | +| url | string | 是 | 视频输出URL:fd://xx (fd number)
![](figures/zh-cn_image_url.png) | ## VideoRecorderProfile9+ @@ -4307,7 +4307,7 @@ seek(timeMs: number, mode?:SeekMode): Promise\ | 参数名 | 类型 | 必填 | 说明 | | ------ | ---------------------- | ---- | ------------------------------------------------------------ | | timeMs | number | 是 | 指定的跳转时间节点,单位毫秒(ms),取值范围为[0, duration]。 | -| mode | [SeekMode](#seekmode8) | 否 | 跳转模式。 | +| mode | [SeekMode](#seekmode8) | 否 | 基于视频I帧的跳转模式,默认为SEEK_PREV_SYNC模式。 | **返回值:** -- GitLab