From e86fdbc6a45d1e4f02329babcaad7f9a1b30c567 Mon Sep 17 00:00:00 2001 From: wy19970731 Date: Fri, 8 Aug 2025 11:16:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E9=BB=84=E4=BB=A3=E7=A0=81=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=20Signed-off-by:=20luminous=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.multimedia.avsession.d.ts | 289 +++++----------------------- 1 file changed, 47 insertions(+), 242 deletions(-) diff --git a/api/@ohos.multimedia.avsession.d.ts b/api/@ohos.multimedia.avsession.d.ts index 7dd40ab3e7..99916b64f6 100644 --- a/api/@ohos.multimedia.avsession.d.ts +++ b/api/@ohos.multimedia.avsession.d.ts @@ -51,7 +51,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 */ @@ -1116,7 +1115,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1143,7 +1141,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1158,7 +1155,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 11 @@ -1172,7 +1168,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 11 @@ -1186,7 +1181,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1211,7 +1205,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1226,7 +1219,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 11 @@ -1240,7 +1232,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 11 @@ -1254,7 +1245,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1279,7 +1269,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1295,7 +1284,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1322,7 +1310,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1337,7 +1324,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1362,7 +1348,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1377,7 +1362,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1402,7 +1386,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1417,7 +1400,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1442,7 +1424,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1454,7 +1435,6 @@ declare namespace avSession { * Get the current session's own controller * @param { AsyncCallback } callback - async callback for the AVSessionController. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1473,7 +1453,6 @@ declare namespace avSession { * Get the current session's own controller * @returns { Promise } Promise for the AVSessionController * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1517,7 +1496,6 @@ declare namespace avSession { * Get output device information * @param { AsyncCallback } callback - async callback for the OutputDeviceInfo. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -1536,7 +1514,6 @@ declare namespace avSession { * Get output device information * @returns { Promise } Promise for the OutputDeviceInfo * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1556,7 +1533,6 @@ declare namespace avSession { * Get output device information * @returns { OutputDeviceInfo } the OutputDeviceInfo * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1568,7 +1544,6 @@ declare namespace avSession { * Get all the current virtual display information for extended display. * @returns { Promise> } Promise for the CastDisplayInfo * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.ExtendedDisplayCast * @atomicservice @@ -1604,7 +1579,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1640,7 +1614,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1676,7 +1649,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1712,7 +1684,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1748,7 +1719,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1784,7 +1754,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1820,7 +1789,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1848,7 +1816,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1876,7 +1843,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1904,7 +1870,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1932,7 +1897,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1960,7 +1924,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -1988,7 +1951,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2016,7 +1978,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2052,7 +2013,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2080,7 +2040,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2095,7 +2054,6 @@ declare namespace avSession { * @param { 'playWithAssetId' } type - Event type. * @param { Callback } callback - Callback used to handle the 'playWithAssetId' command. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2108,7 +2066,6 @@ declare namespace avSession { * @param { 'playWithAssetId' } type - Event type. * @param { Callback } callback - Callback used to handle the 'playWithAssetId' command. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2134,7 +2091,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2160,7 +2116,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2186,7 +2141,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2212,7 +2166,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2238,7 +2191,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2264,7 +2216,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2278,7 +2229,6 @@ declare namespace avSession { * @param { 'setTargetLoopMode' } type - Registration Type 'setTargetLoopMode' * @param { Callback } callback - Used to handle setTargetLoopMode command.The callback provides the {@link LoopMode} * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2291,7 +2241,6 @@ declare namespace avSession { * @param { 'setTargetLoopMode' } type - Registration Type 'setTargetLoopMode' * @param { Callback } callback - Used to handle setTargetLoopMode command.The callback provides the {@link LoopMode} * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2319,7 +2268,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2347,7 +2295,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2373,7 +2320,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2399,7 +2345,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2426,8 +2371,7 @@ declare namespace avSession { * The callback provide the new device info {@link OutputDeviceInfo} and related connection state {@link ConnectionState}. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @throws { BusinessError } 6600102 - The session does not exist * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2454,8 +2398,7 @@ declare namespace avSession { * The callback provide the new device info {@link OutputDeviceInfo} and related connection state {@link ConnectionState}. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @throws { BusinessError } 6600102 - The session does not exist * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2483,7 +2426,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2511,7 +2453,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2539,7 +2480,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2567,7 +2507,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2597,7 +2536,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2623,7 +2561,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2653,7 +2590,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2679,7 +2615,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2709,7 +2644,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2733,7 +2667,6 @@ declare namespace avSession { * @param { Callback } callback - Used to handle ('toggleCallMute') command * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified.2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2747,8 +2680,7 @@ declare namespace avSession { * @param { Callback } callback - Callback used to return cast display information. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @throws { BusinessError } 6600102 - The session does not exist * @syscap SystemCapability.Multimedia.AVSession.ExtendedDisplayCast * @atomicservice @@ -2762,8 +2694,7 @@ declare namespace avSession { * @param { Callback } callback - Callback used to return cast display information. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @throws { BusinessError } 6600102 - The session does not exist * @syscap SystemCapability.Multimedia.AVSession.ExtendedDisplayCast * @atomicservice @@ -2840,7 +2771,6 @@ declare namespace avSession { * Activate the session, indicating that the session can accept control commands * @param { AsyncCallback } callback - The asyncCallback triggered when the session is activated. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -2859,7 +2789,6 @@ declare namespace avSession { * Activate the session, indicating that the session can accept control commands * @returns { Promise } void result promise when executed successfully * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2871,7 +2800,6 @@ declare namespace avSession { * Deactivate the session, indicating that the session not ready to accept control commands * @param { AsyncCallback } callback - The asyncCallback triggered when the session is deactivated. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -2890,7 +2818,6 @@ declare namespace avSession { * Deactivate the session, indicating that the session not ready to accept control commands * @returns { Promise } void promise when executed successfully * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -2902,7 +2829,6 @@ declare namespace avSession { * Destroy this session, the server will clean up the session resources * @param { AsyncCallback } callback - The asyncCallback triggered when the command is executed successfully * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -2921,7 +2847,6 @@ declare namespace avSession { * Destroy this session, the server will clean up the session resources * @returns { Promise } void promise when executed successfully * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -3050,8 +2975,7 @@ declare namespace avSession { /** * Get the playback status of the current player * @param { AsyncCallback } callback - The triggered asyncCallback when (getAVPlaybackState). - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 10 */ @@ -3067,8 +2991,7 @@ declare namespace avSession { /** * Get the playback status of the current player * @returns { Promise } (AVPlaybackState) returned through promise - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3078,8 +3001,7 @@ declare namespace avSession { /** * Get supported decoders of remote player. * @returns { Promise> } (DecoderType) returned through promise - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 19 @@ -3090,8 +3012,7 @@ declare namespace avSession { * Get recommended resolution of remote player based on each decoder. * @param { DecoderType } decoderType - The decoder type. * @returns { Promise } ResolutionLevel returned through promise - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 19 @@ -3101,8 +3022,7 @@ declare namespace avSession { /** * Get supported hdr capabilities of remote player. * @returns { Promise> } HDRFormat returned through promise - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 19 @@ -3112,8 +3032,7 @@ declare namespace avSession { /** * Get supported speed of remote player. * @returns { Promise> } supported speed returned through promise - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 19 @@ -3126,10 +3045,8 @@ declare namespace avSession { * @param { AsyncCallback } callback - The asyncCallback triggered when the command is executed successfully * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. - * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. + * @throws { BusinessError } 6600101 - Session service exception + * @throws { BusinessError } 6600105 - Invalid session command * @throws { BusinessError } 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 10 @@ -3154,10 +3071,8 @@ declare namespace avSession { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. - * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. + * @throws { BusinessError } 6600101 - Session service exception + * @throws { BusinessError } 6600105 - Invalid session command * @throws { BusinessError } 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice @@ -3171,8 +3086,7 @@ declare namespace avSession { * @param { AsyncCallback } callback - The asyncCallback triggered when the command is executed successfully * @throws {BusinessError} 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. - * @throws {BusinessError} 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws {BusinessError} 6600101 - Session service exception * @throws {BusinessError} 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 10 @@ -3196,8 +3110,7 @@ declare namespace avSession { * @returns { Promise } Promise used to return the result. * @throws {BusinessError} 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. - * @throws {BusinessError} 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws {BusinessError} 6600101 - Session service exception * @throws {BusinessError} 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice @@ -3211,8 +3124,7 @@ declare namespace avSession { * @param { AsyncCallback } callback - The asyncCallback triggered when the command is executed successfully * @throws {BusinessError} 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. - * @throws {BusinessError} 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws {BusinessError} 6600101 - Session service exception * @throws {BusinessError} 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 10 @@ -3236,8 +3148,7 @@ declare namespace avSession { * @returns { Promise } Promise used to return the result. * @throws {BusinessError} 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. - * @throws {BusinessError} 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws {BusinessError} 6600101 - Session service exception * @throws {BusinessError} 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice @@ -3248,8 +3159,7 @@ declare namespace avSession { /** * Get the current playing item * @param { AsyncCallback } callback - The triggered asyncCallback. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 10 */ @@ -3265,8 +3175,7 @@ declare namespace avSession { /** * Get the current playing item * @returns { Promise } (AVQueueItem) returned through promise - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3277,7 +3186,6 @@ declare namespace avSession { * Get commands supported by the current cast controller * @param { AsyncCallback> } callback - The triggered asyncCallback when (getValidCommands). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it.. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 */ @@ -3287,7 +3195,6 @@ declare namespace avSession { * Get commands supported by the current cast controller * @returns { Promise> } array of AVCastControlCommandType promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it.. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 */ @@ -3300,8 +3207,7 @@ declare namespace avSession { * @returns { Promise } void promise when executed successfully * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3324,7 +3230,6 @@ declare namespace avSession { * Destroy the controller * @param { AsyncCallback } callback - The asyncCallback triggered when the command is executed successfully. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it.. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 */ @@ -3341,7 +3246,6 @@ declare namespace avSession { * Destroy the controller * @returns { Promise } void promise when executed successfully * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it.. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3368,8 +3272,7 @@ declare namespace avSession { * The callback function provides the {@link AVPlaybackState} parameter. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3394,8 +3297,7 @@ declare namespace avSession { * The callback function provides the {@link AVPlaybackState} parameter. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3418,8 +3320,7 @@ declare namespace avSession { * @param { Callback } callback Callback used to listen for current item changed. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3440,8 +3341,7 @@ declare namespace avSession { * @param { 'mediaItemChange' } type Type of the playback event to listen for. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3466,8 +3366,7 @@ declare namespace avSession { * @param { Callback } callback - Used to handle 'playNext' command * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3490,8 +3389,7 @@ declare namespace avSession { * @param { 'playNext' } type - Type of the 'playNext' event to listen for. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3516,8 +3414,7 @@ declare namespace avSession { * @param { Callback } callback - Used to handle 'playPrevious' command * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3540,8 +3437,7 @@ declare namespace avSession { * @param { 'playPrevious' } type - Type of the 'playPrevious' to listen for. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3555,8 +3451,7 @@ declare namespace avSession { * @param { Callback } callback - Used to handle 'requestPlay' command * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 */ @@ -3568,8 +3463,7 @@ declare namespace avSession { * @param { Callback } callback - Used to handle 'requestPlay' command * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 */ @@ -3582,8 +3476,7 @@ declare namespace avSession { * @param { Callback } callback - Used to handle 'endOfStream' command * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 */ @@ -3595,8 +3488,7 @@ declare namespace avSession { * @param { Callback } callback - Used to handle 'endOfStream' command * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 */ @@ -3618,8 +3510,7 @@ declare namespace avSession { * @param { Callback } callback - Callback used to listen for the playback seekDone event. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3640,8 +3531,7 @@ declare namespace avSession { * @param { 'seekDone' } type - Type of the 'seekDone' to listen for. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3656,7 +3546,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it.. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 @@ -3671,7 +3560,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it.. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 11 @@ -3684,8 +3572,7 @@ declare namespace avSession { * @param { function } callback - Callback used to return video size. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 12 */ @@ -3696,8 +3583,7 @@ declare namespace avSession { * @param { 'videoSizeChange' } type - Type of the 'videoSizeChange' to listen for. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since 12 */ @@ -3731,8 +3617,7 @@ declare namespace avSession { * @throws { BusinessError } 5400104 - Time out. * @throws { BusinessError } 5400105 - Service died. * @throws { BusinessError } 5400106 - Unsupport format. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3765,8 +3650,7 @@ declare namespace avSession { * @throws { BusinessError } 5400104 - Time out. * @throws { BusinessError } 5400105 - Service died. * @throws { BusinessError } 5400106 - Unsupport format. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3980,8 +3864,7 @@ declare namespace avSession { * @param { KeyRequestCallback } callback - Callback used to request drm key. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -3994,8 +3877,7 @@ declare namespace avSession { * @param { KeyRequestCallback } callback - Callback used to request drm key. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. + * @throws { BusinessError } 6600101 - Session service exception * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 @@ -4042,7 +3924,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 14 @@ -4069,7 +3950,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 14 @@ -4083,7 +3963,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 14 @@ -4983,11 +4862,9 @@ declare namespace avSession { dataSrc?: media.AVDataSrcDescriptor; /** - * Source type that supports PCM casting. - * The application can send PCM data directly to the system through audio APIs, without using AVSession to set data. - * @type { ?boolean } Boolean type. The value true means that PCM casting is supported. + * Pcm source type. The app should send pcm data directly to the system. + * @type { ?boolean} * @syscap SystemCapability.Multimedia.AVSession.Core - * @atomicservice * @since 20 */ pcmSrc?: boolean; @@ -5904,10 +5781,10 @@ declare namespace avSession { mediumTypes?: number; /** - * Audio capabilities supported by the device. - * @type { ?AudioCapabilities } Audio capabilities supported by the device. + * When the device protocol is {@link ProtocolType.TYPE_HIGH_DEFINITION_AUDIO}, + * the device audio capabilities will be presented to let application choose proper resource to play. + * @type { ?AudioCapabilities } * @syscap SystemCapability.Multimedia.AVSession.AVCast - * @atomicservice * @since 20 */ audioCapabilities?: AudioCapabilities; @@ -6339,7 +6216,6 @@ declare namespace avSession { * Get the playback status of the current session * @param { AsyncCallback } callback - The triggered asyncCallback when (getAVPlaybackState). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6360,7 +6236,6 @@ declare namespace avSession { * Get the playback status of the current session * @returns { Promise } (AVPlaybackState) returned through promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6382,7 +6257,6 @@ declare namespace avSession { * Get the playback status of the current session * @returns { AVPlaybackState } (AVPlaybackState) returned * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6395,7 +6269,6 @@ declare namespace avSession { * Get the metadata of the current session * @param { AsyncCallback } callback - The triggered asyncCallback when (getAVMetadata). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6416,7 +6289,6 @@ declare namespace avSession { * Get the metadata of the current session * @returns { Promise } (AVMetadata) returned through promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6438,7 +6310,6 @@ declare namespace avSession { * Get the metadata of the current session * @returns { AVMetadata } (AVMetadata) returned * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6451,7 +6322,6 @@ declare namespace avSession { * Get the call status of the current session * @param { AsyncCallback } callback - The triggered asyncCallback when (getAVCallState). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6463,7 +6333,6 @@ declare namespace avSession { * Get the call status of the current session * @returns { Promise } (AVCallState) returned through promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6475,7 +6344,6 @@ declare namespace avSession { * Get the call metadata of the current session * @param { AsyncCallback } callback - The triggered asyncCallback when (getCallMetadata). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6487,7 +6355,6 @@ declare namespace avSession { * Get the call metadata of the current session * @returns { Promise } (CallMetadata) returned through promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6499,7 +6366,6 @@ declare namespace avSession { * Get the name of the playlist of the current session * @param { AsyncCallback } callback - The triggered asyncCallback when (getAVQueueTitle). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6520,7 +6386,6 @@ declare namespace avSession { * Get the name of the playlist of the current session * @returns { Promise } (string) returned through promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6542,7 +6407,6 @@ declare namespace avSession { * Get the name of the playlist of the current session * @returns { string } (string) returned * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6555,7 +6419,6 @@ declare namespace avSession { * Get the playlist of the current session * @param { AsyncCallback> } callback - The triggered asyncCallback when (getAVQueueItems). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6576,7 +6439,6 @@ declare namespace avSession { * Get the playlist of the current session * @returns { Promise> } (Array) returned through promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6598,7 +6460,6 @@ declare namespace avSession { * Get the playlist of the current session * @returns { Array } (Array) returned * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6614,7 +6475,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6641,7 +6501,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6691,7 +6550,6 @@ declare namespace avSession { * Get output device information * @returns { OutputDeviceInfo } (OutputDeviceInfo) returned * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -6750,7 +6608,6 @@ declare namespace avSession { * Get the {@link WantAgent} of this session that can launch the session ability * @param { AsyncCallback } callback - The asyncCallback triggered when getting the WantAgent. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6771,7 +6628,6 @@ declare namespace avSession { * Get the {@link WantAgent} of this session that can launch the session ability * @returns { Promise } WantAgent promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6794,7 +6650,6 @@ declare namespace avSession { * taking into account factors such as playback status, playback speed, and application update time. * @returns { number } current playback position in ms.Note that the returns value of each call will be different. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -6806,7 +6661,6 @@ declare namespace avSession { * Check if the current session is active * @param { AsyncCallback } callback - The triggered asyncCallback when (isActive). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6827,7 +6681,6 @@ declare namespace avSession { * Check if the current session is active * @returns { Promise } boolean promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6849,7 +6702,6 @@ declare namespace avSession { * Check if the current session is active * @returns { boolean } boolean * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6862,7 +6714,6 @@ declare namespace avSession { * Destroy the server controller * @param { AsyncCallback } callback - The asyncCallback triggered when the command is executed successfully. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 @@ -6881,7 +6732,6 @@ declare namespace avSession { * Destroy the server controller * @returns { Promise } void promise when executed successfully * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -6893,7 +6743,6 @@ declare namespace avSession { * Get commands supported by the current session * @param { AsyncCallback> } callback - The triggered asyncCallback when (getValidCommands). * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6914,7 +6763,6 @@ declare namespace avSession { * Get commands supported by the current session * @returns { Promise> } array of AVControlCommandType promise * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6936,7 +6784,6 @@ declare namespace avSession { * Get commands supported by the current session * @returns {Array } array of AVControlCommandType * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core @@ -6952,14 +6799,11 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. * @throws { BusinessError } 6600106 - The session is not activated. * @throws { BusinessError } 6600107 - Too many commands or events. - * Controls the frequency of sending self-query and control commands. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 */ @@ -6987,14 +6831,11 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. * @throws { BusinessError } 6600106 - The session is not activated. * @throws { BusinessError } 6600107 - Too many commands or events. - * Controls the frequency of sending self-query and control commands. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice * @since 12 @@ -7009,14 +6850,11 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. * @throws { BusinessError } 6600106 - The session is not activated. * @throws { BusinessError } 6600107 - Too many commands or events. - * Controls the frequency of sending self-query and control commands. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 */ @@ -7046,14 +6884,11 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. * @throws { BusinessError } 6600106 - The session is not activated. * @throws { BusinessError } 6600107 - Too many commands or events. - * Controls the frequency of sending self-query and control commands. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice * @since 12 @@ -7066,13 +6901,10 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. * @throws { BusinessError } 6600107 - Too many commands or events. - * Controls the frequency of sending self-query and control commands. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 10 */ @@ -7097,13 +6929,10 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. 3.Parameter verification failed. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. * @throws { BusinessError } 6600107 - Too many commands or events. - * Controls the frequency of sending self-query and control commands. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice * @since 12 @@ -7115,11 +6944,9 @@ declare namespace avSession { * @param { string } extraEvent - the event name to get * @returns { Promise } the value returned for such event * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600102 - The session does not exist. * @throws { BusinessError } 6600103 - The session controller does not exist. * @throws { BusinessError } 6600105 - Invalid session command. - * Stop sending the command or event,sending commands supported by the controlled end. * @syscap SystemCapability.Multimedia.AVSession.Core * @since 18 */ @@ -7149,7 +6976,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7179,7 +7005,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7209,7 +7034,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7237,7 +7061,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7269,7 +7092,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7299,7 +7121,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7329,7 +7150,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7357,7 +7177,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7383,7 +7202,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7409,7 +7227,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7437,7 +7254,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7465,7 +7281,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7493,7 +7308,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7521,7 +7335,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7603,7 +7416,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7631,7 +7443,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7659,7 +7470,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7687,7 +7497,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7715,7 +7524,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7743,7 +7551,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7771,7 +7578,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7799,7 +7605,6 @@ declare namespace avSession { * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 6600101 - Session service exception. - * You are advised to:1.Scheduled retry.2.Destroy the current session or session controller and re-create it. * @throws { BusinessError } 6600103 - The session controller does not exist. * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice @@ -7885,7 +7690,7 @@ declare namespace avSession { * The type of control command, add new support 'playWithAssetId' * @typedef { 'play' | 'pause' | 'stop' | 'playNext' | 'playPrevious' | 'fastForward' | 'rewind' | 'seek' | * 'setSpeed' | 'setLoopMode' | 'toggleFavorite' | 'playFromAssetId' | 'playWithAssetId' | 'answer' | 'hangUp' | - * 'toggleCallMute' | 'setTargetLoopMode' } AVControlCommandType + * 'toggleCallMute' } AVControlCommandType * @syscap SystemCapability.Multimedia.AVSession.Core * @atomicservice * @since 20 -- Gitee