diff --git a/zh-cn/application-dev/media/dual-channel-preview.md b/zh-cn/application-dev/media/camera-dual-channel-preview.md similarity index 97% rename from zh-cn/application-dev/media/dual-channel-preview.md rename to zh-cn/application-dev/media/camera-dual-channel-preview.md index e5f29744c4d985085075bb1dabdbdd0bed99eeb4..bc37733fd0a32d9a26c31e208b494535fbf014dd 100644 --- a/zh-cn/application-dev/media/dual-channel-preview.md +++ b/zh-cn/application-dev/media/camera-dual-channel-preview.md @@ -11,6 +11,12 @@ - 暂不支持动态添加流,即不能在没有调用session.stop的情况下,调用addOutput添加流。 - 对ImageReceiver组件获取到的图像数据处理后,需要将对应的图像Buffer释放,确保Surface的BufferQueue正常轮转。 +## 调用流程 + +双路方案调用流程图建议如下: + +![dual-preview-streams-instructions](figures/dual-preview-streams-instructions.png) + ## 开发步骤 1. 导入image接口。 diff --git a/zh-cn/application-dev/media/camera-mode.md b/zh-cn/application-dev/media/camera-mode.md index 200a3c830d15c9e72c7d3f11782e86596395d519..8e52eae306727aff9c984093009b10833e26fcac 100644 --- a/zh-cn/application-dev/media/camera-mode.md +++ b/zh-cn/application-dev/media/camera-mode.md @@ -178,7 +178,7 @@ async function cameraModeCase(context: featureAbility.Context, surfaceId: string // 获取支持的美颜类型对应的美颜强度范围 let beautyRanges: Array; try { - beautyRanges = portraitSession.getSupportedBeautyRanges(beautyTypes[0]); + beautyRanges = portraitSession.getSupportedBeautyRange(beautyTypes[0]); } catch (error) { let err = error as BusinessError; console.error('Failed to get the beauty types ranges. errorCode = ' + err.code); diff --git a/zh-cn/application-dev/media/figures/dual-preview-streams-instructions.png b/zh-cn/application-dev/media/figures/dual-preview-streams-instructions.png new file mode 100644 index 0000000000000000000000000000000000000000..9aa278cb9e0834f396f00bc2999ee1c3c737b758 Binary files /dev/null and b/zh-cn/application-dev/media/figures/dual-preview-streams-instructions.png differ