harmony 鸿蒙native_avsource.h

  • 2025-06-12
  • 浏览 (5)

native_avsource.h

Overview

The native_avsource.h file declares the native APIs used for audio and video demultiplexing.

Library: libnative_media_avsource.so

Since: 10

Related module: AVSource

Summary

Types

Name Description
typedef struct OH_AVSource OH_AVSource Defines a struct that describes a native object for the media source interface.

Functions

Name Description
OH_AVSource * OH_AVSource_CreateWithDataSource (OH_AVDataSource *dataSource) Creates an OH_AVSource instance with a user-defined data source. You can release the instance by calling OH_AVSource_Destroy.
OH_AVSource * OH_AVSource_CreateWithURI (char *uri) Creates an OH_AVSource instance based on a URI.
OH_AVSource * OH_AVSource_CreateWithFD (int32_t fd, int64_t offset, int64_t size) Creates an OH_AVSource instance based on a file descriptor (FD).
OH_AVErrCode OH_AVSource_Destroy (OH_AVSource *source) Destroys an OH_AVSource instance and clears internal resources.
OH_AVFormat * OH_AVSource_GetSourceFormat (OH_AVSource *source) Obtains the basic information about a media resource.
OH_AVFormat * OH_AVSource_GetTrackFormat (OH_AVSource *source, uint32_t trackIndex) Obtains the basic information about a track.
OH_AVFormat * OH_AVSource_GetCustomMetadataFormat (OH_AVSource *source) Obtains the basic information about custom metadata.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙AVCodec Kit

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVSource

harmony 鸿蒙AudioCodec

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞