| 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) | 获取轨道的基础信息。 |