From 1cb5c1d28781398fbe460107dc94b1246d442de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=BF=97=E5=AE=9D?= Date: Fri, 6 Jun 2025 17:53:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9EkeepDecodingOnMute?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic480b213ded229072be703676dbb41da3ab425d6 --- api/@ohos.multimedia.media.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index 6cb68390e4..5414de6944 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -4527,6 +4527,17 @@ declare namespace media { * @since 18 */ thresholdForAutoQuickPlay?: number + + /** + * Indicates whether to keep the decoder working when closing the media, + * which is used to facilitate quick opening of the media. Currently only supports video + * @type { ?boolean } The default value is false, which means that the corresponding decoder + * will be stopped when the media is closed to reduce power consumption. + * @syscap SystemCapability.Multimedia.Media.Core + * @atomicservice + * @since 20 + */ + keepDecodingOnMute?: boolean; } /** -- Gitee From 93fd3e16ae5f1921d262ade36cb17bf80d214c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=BF=97=E5=AE=9D?= Date: Fri, 6 Jun 2025 17:53:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9EkeepDecodingOnMute?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic480b213ded229072be703676dbb41da3ab425d6 Signed-off-by: 马志宝 --- api/@ohos.multimedia.media.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index 6cb68390e4..5414de6944 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -4527,6 +4527,17 @@ declare namespace media { * @since 18 */ thresholdForAutoQuickPlay?: number + + /** + * Indicates whether to keep the decoder working when closing the media, + * which is used to facilitate quick opening of the media. Currently only supports video + * @type { ?boolean } The default value is false, which means that the corresponding decoder + * will be stopped when the media is closed to reduce power consumption. + * @syscap SystemCapability.Multimedia.Media.Core + * @atomicservice + * @since 20 + */ + keepDecodingOnMute?: boolean; } /** -- Gitee