From 5e346d638ca29ec04e1d4d8fb38ecf378e560d88 Mon Sep 17 00:00:00 2001 From: magekkkk Date: Tue, 8 Mar 2022 08:58:10 +0000 Subject: [PATCH] update js api according to media TMG conclusion Signed-off-by: magekkkk --- api/@ohos.multimedia.audio.d.ts | 8 +++++- api/@ohos.multimedia.camera.d.ts | 43 +------------------------------- 2 files changed, 8 insertions(+), 43 deletions(-) diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index 817083957e..7babf9630d 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -1460,7 +1460,13 @@ declare namespace audio { * @since 8 * @syscap SystemCapability.Multimedia.Audio.Core */ - SOURCE_TYPE_MIC + SOURCE_TYPE_MIC = 0, + /** + * Voice communication source. + * @since 8 + * @syscap SystemCapability.Multimedia.Audio.Core + */ + SOURCE_TYPE_VOICE_COMMUNICATION = 7 } /** diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 001206f131..5acbd7dcff 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -267,25 +267,6 @@ declare namespace camera { width: number; } - /** - * Enum for camera data format. Align to pixel format and image format value. - * @since 8 - * @syscap SystemCapability.Multimedia.Camera.Core - */ - enum CameraFormat { - /** - * YCRCb 420 SP format. - * @since 8 - */ - CAMERA_FORMAT_YCRCb_420_SP = 1003, - - /** - * JPEG format. - * @since 8 - */ - CAMERA_FORMAT_JPEG = 2000, - } - /** * Camera input object. * @since 8 @@ -301,28 +282,6 @@ declare namespace camera { getCameraId(callback: AsyncCallback): void; getCameraId(): Promise; - /** - * Gets all supported sizes for current camera input. - * @return Supported size array. - * @since 8 - * @syscap SystemCapability.Multimedia.Camera.Core - */ - getSupportedSizes(format: CameraFormat, callback: AsyncCallback>): void; - getSupportedSizes(format: CameraFormat): Promise>; - - /** - * Gets all supported formats for current camera input. - * @return Supported format array. - * @since 8 - * @syscap SystemCapability.Multimedia.Camera.Core - */ - getSupportedPreviewFormats(callback: AsyncCallback>): void; - getSupportedPreviewFormats(): Promise>; - getSupportedPhotoFormats(callback: AsyncCallback>): void; - getSupportedPhotoFormats(): Promise>; - getSupportedVideoFormats(callback: AsyncCallback>): void; - getSupportedVideoFormats(): Promise>; - /** * Check if device has flash light. * @return Flash light has or not. @@ -1076,4 +1035,4 @@ declare namespace camera { } } -export default camera; \ No newline at end of file +export default camera; -- Gitee