From 04f571cfcf34a4f4a6ba8b9e121c69c0526ecf2b Mon Sep 17 00:00:00 2001 From: zhangwenting15 Date: Thu, 28 Aug 2025 16:25:47 +0800 Subject: [PATCH] change with electronic flow Signed-off-by: zhangwenting15 Change-Id: I7f27d6081f7d0bb76abc85b997320c53565a4b98 --- 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 e46eb2a396..daa3321b48 100644 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -629,6 +629,22 @@ declare namespace media { * @since 20 * @arkts 1.2 */ + /** + * Creates an **AVTranscoder** instance. This API uses a promise to return the result. + * + * **NOTE** + * + * A maximum of 2 **AVTranscoder** instances can be created. + * + * @returns {Promise} Promise used to return the result. If the operation is successful, an + * **AVTranscoder** instance is returned; otherwise, **null** is returned. The instance can be used for video + * transcoding. + * @throws { BusinessError } 5400101 - No memory. Return by promise. + * @syscap SystemCapability.Multimedia.Media.AVTranscoder + * @atomicservice + * @since 21 + * @arkts 1.2 + */ function createAVTranscoder(): Promise; /** -- Gitee