From 7a2d07e3063fd32eafc59a59701c0119fb47c0a4 Mon Sep 17 00:00:00 2001 From: liyuhang Date: Mon, 3 Apr 2023 16:22:13 +0800 Subject: [PATCH] fixed 9f82b9c from https://gitee.com/imyuhang/docs/pulls/16815 Fix avsession docs, audioManager->audioRoutingManager Signed-off-by: liyuhang Change-Id: I9fc1bbad77fc914a4e74fb219bf905b4ccd1a473 --- zh-cn/application-dev/reference/apis/js-apis-avsession.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-avsession.md b/zh-cn/application-dev/reference/apis/js-apis-avsession.md index db5c5d326d..4fa9dc7c83 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-avsession.md +++ b/zh-cn/application-dev/reference/apis/js-apis-avsession.md @@ -348,8 +348,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array { +await audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { audioDevices = data; console.info('Promise returned to indicate that the device list is obtained.'); }).catch((err) => { @@ -400,8 +401,9 @@ castAudio(session: SessionToken | 'all', audioDevices: Array { +await audioRoutingManager.getDevices(audio.DeviceFlag.OUTPUT_DEVICES_FLAG).then((data) => { audioDevices = data; console.info('Promise returned to indicate that the device list is obtained.'); }).catch((err) => { -- GitLab