harmony 鸿蒙avmetadata_extractor.h
avmetadata_extractor.h
Overview
The avmetadata_extractor.h file declares the AVMetadataExtractor APIs. With these native APIs, you can obtain metadata from media assets.
System capability: SystemCapability.Multimedia.Media.AVMetadataExtractor
Library: libavmetadata_extractor.so
Since: 18
Related module: AVMetadataExtractor
Summary
Types
Name | Description |
---|---|
typedef struct OH_AVMetadataExtractor OH_AVMetadataExtractor | Defines a struct for the OH_AVMetadataExtractor. |
Functions
Name | Description |
---|---|
OH_AVMetadataExtractor * OH_AVMetadataExtractor_Create (void) | Creates an OH_AVMetadataExtractor instance. |
OH_AVErrCode OH_AVMetadataExtractor_SetFDSource (OH_AVMetadataExtractor *extractor, int32_t fd, int64_t offset, int64_t size) | Sets a data source based on the media file descriptor. |
OH_AVErrCode OH_AVMetadataExtractor_FetchMetadata (OH_AVMetadataExtractor *extractor, OH_AVFormat *avMetadata) | Obtains metadata from a media asset. This function must be called after SetFDSource. |
OH_AVErrCode OH_AVMetadataExtractor_FetchAlbumCover (OH_AVMetadataExtractor *extractor, OH_PixelmapNative **pixelMap) | Obtains the cover of an audio album. This function must be called after SetFDSource. |
OH_AVErrCode OH_AVMetadataExtractor_Release (OH_AVMetadataExtractor *extractor) | Releases the resources used by the OH_AVMetadataExtractor instance and destroys the instance. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙OH_AVRecorder_Config
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦