harmony 鸿蒙native_avsource.h

  • 2023-06-24
  • 浏览 (285)

native_avsource.h

概述

声明用于构造音视频资源对象的Native API。

起始版本:

10

相关模块:

AVSource

汇总

函数

名称 描述
*OH_AVSource_CreateWithURI (char *uri) 为统一资源标识符对应的的资源对象创建OH_AVSource实例对象。
*OH_AVSource_CreateWithFD (int32_t fd, int64_t offset, int64_t size) 为文件描述符对应的资源对象创建OH_AVSource实例对象。
OH_AVSource_Destroy (OH_AVSource *source) 销毁OH_AVSource实例并清理内部资源。同一实例只能被销毁一次。
*OH_AVSource_GetSourceFormat (OH_AVSource *source) 获取媒体资源文件的基础信息。
*OH_AVSource_GetTrackFormat (OH_AVSource *source, uint32_t trackIndex) 获取轨道的基础信息。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞