diff --git a/api/@ohos.multimedia.avsession.d.ts b/api/@ohos.multimedia.avsession.d.ts index 142c9518492fa4b8fb78ef452c57cc3b4a1c34a3..1f635d348a7a22ac05ce163ed45954db2533645f 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. + * 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 + * @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. @@ -1598,15 +1598,15 @@ 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. + * 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 * @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. @@ -1619,8 +1619,8 @@ 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 + * 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 * @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