From 3baaeecdf429c949edf44a7797a6962bbf9971b4 Mon Sep 17 00:00:00 2001 From: FileStream Date: Sat, 27 Jul 2024 18:04:04 +0800 Subject: [PATCH 1/4] =?UTF-8?q?meta=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FileStream --- 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 a22a2adee..c84e7a02e 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -3611,6 +3611,17 @@ declare namespace media { */ getInputSurface(): Promise; + /** + * Get metadata input surface. it must be called between prepare completed and start. + * @returns { Promise } A Promise instance used to return the metadata input surface id in string. + * @throws { BusinessError } 5400102 - Operate not permit. Return by promise. + * @throws { BusinessError } 5400103 - IO error. Return by promise. + * @throws { BusinessError } 5400105 - Service died. Return by promise. + * @syscap SystemCapability.Multimedia.Media.AVRecorder + * @since 12 + */ + getInputMetaSurface(): Promise; + /** * Check if the avrecorder has watermark capability. * @returns { Promise } A Promise instance used to return true or false when the function is finished. From ac922b2dd8ee801c692792f3d636223f29629a4a Mon Sep 17 00:00:00 2001 From: FileStream Date: Sat, 27 Jul 2024 18:04:04 +0800 Subject: [PATCH 2/4] =?UTF-8?q?meta=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FileStream --- api/@ohos.multimedia.media.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index a22a2adee..fb2cc318a 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -3611,6 +3611,21 @@ declare namespace media { */ getInputSurface(): Promise; + /** + * Get input meta surface for specified meta source type. it must be called between prepare completed and start. + * @returns { Promise } A Promise instance used to return the input surface id in string. + * @throws { BusinessError } 202 - Called from Non-System applications. Return by promise. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. + *
2. Incorrect parameter types. 3.Parameter verification failed. + * @throws { BusinessError } 5400102 - Operate not permit. Return by promise. + * @throws { BusinessError } 5400103 - IO error. Return by promise. + * @throws { BusinessError } 5400105 - Service died. Return by promise. + * @syscap SystemCapability.Multimedia.Media.AVRecorder + * @systemapi + * @since 12 + */ + getInputMetaSurface(): Promise; + /** * Check if the avrecorder has watermark capability. * @returns { Promise } A Promise instance used to return true or false when the function is finished. @@ -6125,6 +6140,13 @@ declare namespace media { * @since 12 */ videoSourceType?: VideoSourceType; + /** + * Meta source types, details see @MetaSourceType . + * @syscap SystemCapability.Multimedia.Media.AVRecorder + * @crossplatform + * @since 12 + */ + metaSourceTypes?: Array; /** * Video recorder profile, details see @AVRecorderProfile . * @syscap SystemCapability.Multimedia.Media.AVRecorder From d2de85d897ce62e468d8d63f02e8496dea43c516 Mon Sep 17 00:00:00 2001 From: FileStream Date: Mon, 29 Jul 2024 02:55:15 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9ts=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FileStream --- api/@ohos.multimedia.media.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index 696a0cc1e..a9e061e7d 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -3613,6 +3613,7 @@ declare namespace media { /** * Get input meta surface for specified meta source type. it must be called between prepare completed and start. + * @param { MetaSourceType } type : Meta source type. * @returns { Promise } A Promise instance used to return the input surface id in string. * @throws { BusinessError } 202 - Called from Non-System applications. Return by promise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. @@ -6160,6 +6161,7 @@ declare namespace media { videoSourceType?: VideoSourceType; /** * Meta source types, details see @MetaSourceType . + * @type { ?Array } * @syscap SystemCapability.Multimedia.Media.AVRecorder * @systemapi * @since 12 From c02065460cd1f858de433fdabfd0a6643d96d949 Mon Sep 17 00:00:00 2001 From: FileStream Date: Tue, 30 Jul 2024 23:39:28 +0800 Subject: [PATCH 4/4] =?UTF-8?q?meta=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: FileStream --- api/@ohos.multimedia.media.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index a9e061e7d..fcbca6ca0 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -3613,7 +3613,7 @@ declare namespace media { /** * Get input meta surface for specified meta source type. it must be called between prepare completed and start. - * @param { MetaSourceType } type : Meta source type. + * @param { MetaSourceType } type - Meta source type. * @returns { Promise } A Promise instance used to return the input surface id in string. * @throws { BusinessError } 202 - Called from Non-System applications. Return by promise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.