From 8f20b4a8c4c4af70d756463bc1f54bbbefcc1595 Mon Sep 17 00:00:00 2001 From: zhangwt3652 Date: Wed, 20 Aug 2025 15:41:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?avsession=20ArtTs1.2=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=89=8B=E8=A1=A8=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangwt3652 --- api/@ohos.multimedia.avsession.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.multimedia.avsession.d.ts b/api/@ohos.multimedia.avsession.d.ts index 142c951849..7011c95422 100644 --- a/api/@ohos.multimedia.avsession.d.ts +++ b/api/@ohos.multimedia.avsession.d.ts @@ -837,7 +837,7 @@ declare namespace avSession { * This function can be used at both side to get the same controller to do the playback control. * @permission ohos.permission.MANAGE_MEDIA_RESOURCES * @param { string } sessionId Specifies the sessionId to get controller. - * @param { AsyncCallback } callback - async callback for the AVCastController. + * @param { AsyncCallback } callback - async callback for the AVCastController. * @throws {BusinessError} 201 - permission denied * @throws { BusinessError } 202 - Not System App. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. @@ -849,14 +849,14 @@ declare namespace avSession { * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - function getAVCastController(sessionId: string, callback: AsyncCallback): void; + function getAVCastController(sessionId: string, callback: AsyncCallback): void; /** * Get the current session's remote controller client. * If the avsession is not under casting state, the controller will return null. * @permission ohos.permission.MANAGE_MEDIA_RESOURCES * @param { string } sessionId Specifies the sessionId to get controller. - * @returns { Promise } Promise for the AVCastController + * @returns { Promise } Promise for the AVCastController * @throws {BusinessError} 201 - permission denied * @throws { BusinessError } 202 - Not System App. * @throws { BusinessError } 401 - parameter check failed. 1.Mandatory parameters are left unspecified. @@ -868,7 +868,7 @@ declare namespace avSession { * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - function getAVCastController(sessionId: string): Promise; + function getAVCastController(sessionId: string): Promise; /** * Cast resource to remote device. @@ -1599,14 +1599,14 @@ declare namespace avSession { /** * Get the cast controller when the session is casted to remote device. * If the avsession is not under casting state, the controller will return null. - * @param { AsyncCallback } callback - async callback for the AVCastController. + * @param { AsyncCallback } callback - async callback for the AVCastController. * @throws {BusinessError} 6600102 - The session does not exist * @throws {BusinessError} 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - getAVCastController(callback: AsyncCallback): void; + getAVCastController(callback: AsyncCallback): void; /** * Get the cast controller when the session is casted to remote device. @@ -1620,7 +1620,7 @@ declare namespace avSession { /** * Get the cast controller when the session is casted to remote device. * If the avsession is not under casting state, the controller will return null. - * @returns { Promise } Promise for the AVCastController + * @returns { Promise } Promise for the AVCastController * @throws {BusinessError} 6600102 - The session does not exist * @throws {BusinessError} 6600109 - The remote connection is not established * @syscap SystemCapability.Multimedia.AVSession.AVCast @@ -1628,7 +1628,7 @@ declare namespace avSession { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - getAVCastController(): Promise; + getAVCastController(): Promise; /** * Get output device information -- Gitee From 0051c01c8623c491c4686a145da9c6b9ed3b59e0 Mon Sep 17 00:00:00 2001 From: zhangwt3652 Date: Thu, 21 Aug 2025 15:35:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?avsession=20ArkTs1.2=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A9=BF=E6=88=B4=E7=BC=96=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangwt3652 --- api/@ohos.multimedia.avsession.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.multimedia.avsession.d.ts b/api/@ohos.multimedia.avsession.d.ts index 7011c95422..1f635d348a 100644 --- a/api/@ohos.multimedia.avsession.d.ts +++ b/api/@ohos.multimedia.avsession.d.ts @@ -853,7 +853,7 @@ declare namespace avSession { /** * Get the current session's remote controller client. - * If the avsession is not under casting state, the controller will return null. + * If the avsession is not under casting state, the controller will return undefined. * @permission ohos.permission.MANAGE_MEDIA_RESOURCES * @param { string } sessionId Specifies the sessionId to get controller. * @returns { Promise } Promise for the AVCastController @@ -1598,7 +1598,7 @@ declare namespace avSession { /** * Get the cast controller when the session is casted to remote device. - * If the avsession is not under casting state, the controller will return null. + * If the avsession is not under casting state, the controller will return undefined. * @param { AsyncCallback } callback - async callback for the AVCastController. * @throws {BusinessError} 6600102 - The session does not exist * @throws {BusinessError} 6600109 - The remote connection is not established @@ -1619,7 +1619,7 @@ declare namespace avSession { */ /** * Get the cast controller when the session is casted to remote device. - * If the avsession is not under casting state, the controller will return null. + * If the avsession is not under casting state, the controller will return undefined. * @returns { Promise } Promise for the AVCastController * @throws {BusinessError} 6600102 - The session does not exist * @throws {BusinessError} 6600109 - The remote connection is not established -- Gitee