From b571085c593a2e2a85ffab71e90d99bddc3468f4 Mon Sep 17 00:00:00 2001 From: laamy Date: Mon, 22 Apr 2024 20:22:46 +0800 Subject: [PATCH 1/2] add api Signed-off-by: laamy --- api/@ohos.multimedia.media.d.ts | 131 ++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index 5bc19de4e..5033c694d 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -419,6 +419,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the information about the album title + * of the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ album?: string; /** @@ -428,6 +435,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the information about the performer or + * artist associated with the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ albumArtist?: string; /** @@ -437,6 +451,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the information about the artist of + * the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ artist?: string; /** @@ -446,6 +467,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the information about the author of + * the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ author?: string; /** @@ -455,6 +483,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the information about the created time of + * the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ dateTime?: string; /** @@ -464,6 +499,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the information about the created or modified time + * with the specific date format of the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ dateTimeFormat?: string; /** @@ -473,6 +515,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the information about the composer of + * the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ composer?: string; /** @@ -481,6 +530,12 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the playback duration of the media source. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ duration?: string; /** @@ -498,6 +553,12 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * If this value exists the media contains audio content. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ hasAudio?: string; /** @@ -506,6 +567,12 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * If this value exists the media contains video content. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ hasVideo?: string; /** @@ -515,6 +582,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the mime type of the media source. Some + * example mime types include: "video/mp4", "audio/mp4", "audio/amr-wb". This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ mimeType?: string; /** @@ -524,6 +598,13 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the number of tracks, such as audio, video, + * text, in the media source, such as a mp4 or 3gpp file. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ trackCount?: string; /** @@ -532,6 +613,12 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * It is the audio sample rate, if available. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ sampleRate?: string; /** @@ -540,6 +627,12 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * The metadata to retrieve the media source title. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ title?: string; /** @@ -548,6 +641,12 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * If the media contains video, this key retrieves its height. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ videoHeight?: string; /** @@ -556,6 +655,12 @@ declare namespace media { * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor * @since 11 */ + /** + * If the media contains video, this key retrieves its width. This field is readonly in current version. + * @type { ?string } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ videoWidth?: string; /** @@ -575,6 +680,22 @@ declare namespace media { * @since 12 */ hdrType?: HdrType; + + /** + * The geographical location info of the video. + * @type { ?Location } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ + location?: Location; + + /** + * Custom parameter key-value map read from moov.meta.list. + * @type { ?Record } + * @syscap SystemCapability.Multimedia.Media.AVMetadataExtractor + * @since 12 + */ + customInfo?: Record; } /** @@ -4540,14 +4661,24 @@ declare namespace media { * the range of rotation angle should be {0, 90, 180, 270}, default is 0. * @syscap SystemCapability.Multimedia.Media.AVRecorder * @since 9 + * @deprecated since 12 + * @useinstead ohos.multimedia.media/media.AVMetadata#videoOrientation */ rotation?: number; /** * Geographical location information. * @syscap SystemCapability.Multimedia.Media.AVRecorder * @since 9 + * @deprecated since 12 + * @useinstead ohos.multimedia.media/media.AVMetadata#location */ location?: Location; + /** + * Set global metadata info. Details see @AVMetadata + * @syscap SystemCapability.Multimedia.Media.AVRecorder + * @since 12 + */ + metadata?: AVMetadata; } /** From ee6f496ce11ce757903a204ef38697d5ebd05256 Mon Sep 17 00:00:00 2001 From: laamy Date: Wed, 24 Apr 2024 11:41:43 +0800 Subject: [PATCH 2/2] add moov Signed-off-by: laamy --- api/@ohos.multimedia.media.d.ts | 1 + .../api_check_plugin/plugin/dictionaries_supplementary.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/api/@ohos.multimedia.media.d.ts b/api/@ohos.multimedia.media.d.ts index 5033c694d..10b38bb72 100755 --- a/api/@ohos.multimedia.media.d.ts +++ b/api/@ohos.multimedia.media.d.ts @@ -4675,6 +4675,7 @@ declare namespace media { location?: Location; /** * Set global metadata info. Details see @AVMetadata + * @type { ?AVMetadata } * @syscap SystemCapability.Multimedia.Media.AVRecorder * @since 12 */ diff --git a/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt b/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt index ccf80bba1..6cebfb97f 100644 --- a/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt +++ b/build-tools/api_check_plugin/plugin/dictionaries_supplementary.txt @@ -514,6 +514,7 @@ mmicode mnc moderately moitor +moov mplink mschap msdos