From 2a75d42b6d817c7dc8dc6777c3afe17f153c7573 Mon Sep 17 00:00:00 2001 From: liujie129 Date: Tue, 26 Dec 2023 17:55:28 +0800 Subject: [PATCH] add automicservice lable for reset() Signed-off-by: liujie129 --- api/@ohos.multimedia.media.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index 3d0e9142d7..523236a373 100644 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -948,6 +948,14 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVPlayer * @since 9 */ + /** + * Reset AVPlayer, it will to idle state and can set src again. + * @param { AsyncCallback } callback - instance used to return when reset completed. + * @throws { BusinessError } 5400102 - Operation not allowed. Return by callback. + * @syscap SystemCapability.Multimedia.Media.AVPlayer + * @atomicservice + * @since 11 + */ reset(callback: AsyncCallback): void; /** @@ -957,6 +965,14 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVPlayer * @since 9 */ + /** + * Reset AVPlayer, it will to idle state and can set src again. + * @returns { Promise } A Promise instance used to return when reset completed. + * @throws { BusinessError } 5400102 - Operation not allowed. Return by promise. + * @syscap SystemCapability.Multimedia.Media.AVPlayer + * @atomicservice + * @since 11 + */ reset(): Promise; /** -- Gitee