cn.tee3.avd_SDK-Objectc  2.1.0
构造函数 | 属性 | 所有成员列表
AVDFakeVideoCapturer类 参考

视频流导入接口. 更多...

类 AVDFakeVideoCapturer 继承关系图:

构造函数

(instancetype) - initWithDelegate:fourFormat:isScreen:
 创建一个视频采集器对象 更多...
 
(void) - destory
 释放房间对象 更多...
 
(BOOL) - isRunning
 判断Capturer是否正在运行 更多...
 
(AVDResult- inputCapturedFrame:w:h:rotation:mirror:pts:
 给Capturer输入原始图像 更多...
 
((unavailable("init is not a supported initializer for this class.") - __attribute__
 

属性

enum AVDFourccType fourFormat
 将要传入的视频数据类型 更多...
 
BOOL isScreen
 是否为屏幕共享 更多...
 

详细描述

视频流导入接口.

视频导入相关功能接口。

函数文档

◆ __attribute__()

- (( unavailable("init is not a supported initializer for this class.") __attribute__

◆ destory()

- (void) destory

释放房间对象

◆ initWithDelegate:fourFormat:isScreen:()

- (instancetype) initWithDelegate: (id< AVDFakeVideoCapturerDelegate >)  delegate
fourFormat: (enum AVDFourccType fourFormat
isScreen: (BOOL)  isScreen 

创建一个视频采集器对象

参数
[in]delegate回调对象。
[in]fourFormat将要传入的视频数据类型。
[in]isScreen是否是桌面共享。
返回
视频采集器对象指针。

◆ inputCapturedFrame:w:h:rotation:mirror:pts:()

- (AVDResult) inputCapturedFrame: (NSData *)  sample
w: (NSInteger)  w
h: (NSInteger)  h
rotation: (NSInteger)  rotation
mirror: (BOOL)  mirror
pts: (NSInteger)  pts 

给Capturer输入原始图像

参数
[in]pts时间戳, nanos second。
[in]w图像宽度
[in]h图像高度
[in]sample图像内容数据指针
[in]rotation图像需要旋转的角度,顺时针方向,取值:0,90,180,270
[in]mirror镜面图像,左右翻转
返回
返回错误代码: AVD_OK 成功 RTC_ERR_VIDEO_CONVERT_FAILED 转换图像格式失败,有可能是内存分配失败,可考虑重启程序。 Err_Invalid_Arg 参数不合法,可忽略 Err_Wrong_Status 状态不对,可忽略

◆ isRunning()

- (BOOL) isRunning

判断Capturer是否正在运行

返回
是否在运行。

属性说明

◆ fourFormat

- (enum AVDFourccType) fourFormat
readnonatomicassign

将要传入的视频数据类型

◆ isScreen

- (BOOL) isScreen
readnonatomicassign

是否为屏幕共享


该类的文档由以下文件生成: