harmony 鸿蒙avmetadata_extractor.h

2025-06-12 浏览 (1)

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

NameDescription
typedef struct OH_AVMetadataExtractor OH_AVMetadataExtractorDefines a struct for the OH_AVMetadataExtractor.

Functions

NameDescription
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 鸿蒙Media Kit

harmony 鸿蒙AVImageGenerator

harmony 鸿蒙AVMetadataExtractor

harmony 鸿蒙AVPlayer

harmony 鸿蒙AVPlayerCallback

harmony 鸿蒙AVRecorder

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙OH_AVRecorder_Config

harmony 鸿蒙OH_AVRecorder_EncoderInfo

harmony 鸿蒙OH_AVRecorder_Location

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/BqqtAP