cn.tee3.avd_SDK-Objectc
2.1.0
|
简易房间接口类 更多...
类方法 | |
(AVDEasyRoom *) | + obtain: |
获取或创建房间接口 更多... | |
属性 | |
id< AVDEasyRoomDelegate > | delegate |
房间逻辑回调代理 更多... | |
AVDVideoParams * | videoParams |
视频参数 更多... | |
AVDAudioParams * | audioParams |
音频参数 更多... | |
AVDRoomId | roomId |
当前的房间Id 更多... | |
AVDRoomInfo * | roomInfo |
当前的房间信息 更多... | |
AVDUserId | selfUserId |
自己的用户ID 更多... | |
AVDUser * | selfUser |
自己的用户信息 更多... | |
NSMutableArray * | participants |
参会者列表用户信息, 数组中存放AVDUser对象 更多... | |
简易房间接口类
简易房间接口定义了独立的简易房间对象创建和释放、房间功能操作。
- (( unavailable("init is not a supported initializer for this class.") __attribute__ |
- (AVDResult) attachRender: | (AVDUserId) | userId | |
render: | (id< AVDVideoRenderer >) | render | |
关联视频数据和显示对象,在render中显示视频
[in] | userId | 摄像头Id,唯一标示一路共享的摄像头视频。 |
[in] | *render | 显示对象接口指针。 |
- (void) destory |
释放房间接口
解除摄像头视频数据的所有显示对象关联
[in] | userId | 摄像头Id,唯一标示一路共享的摄像头视频。 |
- (AVDResult) enableStats: | (BOOL) | isEnable |
当前房间启用或关闭流量统计功能
[in] | isEnable | 启用或关闭。 |
- (NSString*) getOption: | (enum AVDRoomOption) | type |
获取房间选项
[in] | type | 房间选项类型。 |
- (AVDRoomStats*) getRoomStats |
获取房间的流量统计信息
- (AVDVideoMixer*) getVideoMixer |
获取视频混频布局接口
- (BOOL) ismuteMicrophone |
判断本地麦克风是否静默
- (BOOL) isWorking |
房间加入退出逻辑
当前用户加入房间
[in] | *user | 用户信息:用户Id(不能包含'{'、'}'字符),用户名,用户数据等;当应用层必须传入有效的user.UserId,来唯一标识一个用户。 |
[in] | joinresult | 加房间回调接口。 |
房间中踢出用户
[in] | reason | 踢出用户的理由代码。 |
[in] | userId | 被踢出用户Id。 |
当前用户离开房间
[in] | reason | 用户离开房间的原因代码,正常离开为AVD_OK。 |
- (AVDResult) muteMicrophone |
本地麦克风静默
+ (AVDEasyRoom*) obtain: | (AVDRoomId) | roomID |
获取或创建房间接口
[in] | roomId | 房间Id。 |
- (AVDResult) previewCamera: | (id< AVDVideoRenderer >) | render |
预览本地缺省摄像头视频
[in] | *render | 显示对象接口指针 |
- (AVDResult) publishCamera |
发布缺省摄像头视频
- (AVDResult) publishMicrophone |
打开本地麦克风发布到房间中
透明通道,发送私有数据
[in] | *data | 发送的数据指针。 |
[in] | toId | 目的用户Id。 |
- (AVDResult) sendPublicData: | (NSData *) | data |
透明通道,发送广播数据
[in] | *data | 发送的数据指针。 |
- (AVDResult) setAudioMixerDataListener: | (id< AVDAudioRenderer >) | listener | |
sampleRate: | (NSInteger) | sampleRate | |
音视频导出操作
设置获取混音数据回调接口
[in] | listener | 混音数据回调指针。 |
[in] | sampleRate | 导出混音数据的采样率:16000,44100,48000。 |
- (AVDResult) setAudioSource: | (AVDFakeAudioCapturer *) | acapturer |
开启直播(主播)或对讲(观众)前: 设置音频的输入数据源
[in] | *acapturer | 音频的输入数据源。 |
- (AVDResult) setOption: | (enum AVDRoomOption) | type | |
value: | (NSString *) | svalue | |
设置房间选项
[in] | type | 房间选项类型。 |
[in] | svalue | 选项内容,根据选项说明填入。 |
- (AVDResult) setVideoMixerDataListener: | (id< AVDVideoRenderer >) | listener |
设置获取视频数据回调接口,此数据仅回调一份数据:数据为主视频+各个Overlay的视频,视频大小为主视频大小;如使用ILivecast接口,不需要设置此接口。
[in] | listener | 混音数据回调指针。 |
- (AVDResult) setVideoSource: | (AVDFakeVideoCapturer *) | vcapturer |
音视频操作
开启直播(主播)或对讲(观众)前: 设置视频的输入数据源
[in] | *vcapturer | 视频的输入数据源。 |
- (AVDResult) switchCamera |
视频切换摄像头
- (AVDResult) unmuteMicrophone |
本地麦克风静默取消
- (AVDResult) unpreviewCamera |
取消预览缺省摄像头视频
- (AVDResult) unpublishCamera |
取消发布缺省摄像头视频
- (AVDResult) unpublishMicrophone |
关闭本地麦克风发布到房间中
|
readwritenonatomicretain |
音频参数
|
readwritenonatomicweak |
房间逻辑回调代理
|
readnonatomicretain |
参会者列表用户信息, 数组中存放AVDUser对象
|
readnonatomicretain |
当前的房间Id
|
readnonatomicretain |
当前的房间信息
|
readnonatomicretain |
自己的用户信息
|
readnonatomicretain |
自己的用户ID
|
readwritenonatomicretain |
视频参数