!12933 meta数据获取需求

Merge pull request !12933 from FileStream/master
This commit is contained in:
openharmony_ci 2024-08-01 07:10:36 +00:00 committed by Gitee
commit c7031a0020
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3763,6 +3763,22 @@ declare namespace media {
*/
getInputSurface(): Promise<string>;
/**
* 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<string> } 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.
* <br>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(type: MetaSourceType): Promise<string>;
/**
* Check if the avrecorder has watermark capability.
* @returns { Promise<boolean> } A Promise instance used to return true or false when the function is finished.
@ -5895,6 +5911,24 @@ declare namespace media {
VIDEO_SOURCE_TYPE_SURFACE_ES = 1,
}
/**
* Enumerates meta source type for recorder.
*
* @enum { number }
* @syscap SystemCapability.Multimedia.Media.AVRecorder
* @systemapi
* @since 12
*/
enum MetaSourceType {
/**
* Maker info for video.
* @syscap SystemCapability.Multimedia.Media.AVRecorder
* @systemapi
* @since 12
*/
VIDEO_MAKER_INFO = 0,
}
/**
* Provides the video recorder configuration definitions.
*
@ -6286,6 +6320,14 @@ declare namespace media {
* @since 12
*/
videoSourceType?: VideoSourceType;
/**
* Meta source types, details see @MetaSourceType .
* @type { ?Array<MetaSourceType> }
* @syscap SystemCapability.Multimedia.Media.AVRecorder
* @systemapi
* @since 12
*/
metaSourceTypes?: Array<MetaSourceType>;
/**
* Video recorder profile, details see @AVRecorderProfile .
* @syscap SystemCapability.Multimedia.Media.AVRecorder