harmony 鸿蒙native_avsource.h
native_avsource.h
概述
声明用于音视频解封装的Native API。
库: libnative_media_avsource.so
起始版本: 10
相关模块:AVSource
汇总
类型定义
名称 | 描述 |
---|---|
typedef struct OH_AVSource OH_AVSource | 为媒体资源接口定义native层对象。 |
函数
名称 | 描述 |
---|---|
OH_AVSource * OH_AVSource_CreateWithDataSource (OH_AVDataSource *dataSource) | 为用户自定义数据源的资源对象创建OH_AVSource实例对象,可以通过调用OH_AVSource_Destroy释放实例。 |
OH_AVSource * OH_AVSource_CreateWithURI (char *uri) | 为统一资源标识符对应的的资源对象创建OH_AVSource实例对象。 |
OH_AVSource * OH_AVSource_CreateWithFD (int32_t fd, int64_t offset, int64_t size) | 为文件描述符对应的资源对象创建OH_AVSource实例对象。 |
OH_AVErrCode OH_AVSource_Destroy (OH_AVSource *source) | 销毁OH_AVSource实例并清理内部资源。 |
OH_AVFormat * OH_AVSource_GetSourceFormat (OH_AVSource *source) | 获取媒体资源文件的基础信息。 |
OH_AVFormat * OH_AVSource_GetTrackFormat (OH_AVSource *source, uint32_t trackIndex) | 获取轨道的基础信息。 |
OH_AVFormat * OH_AVSource_GetCustomMetadataFormat (OH_AVSource *source) | 获取自定义元数据的基础信息。 |
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦