cn.tee3.avd_SDK-Objectc
2.1.0
|
直播接口类 更多...
构造函数 | |
(AVDResult) | - initContext |
直播对象初始化 更多... | |
(AVDResult) | - uninit |
直播对象反初始化 更多... | |
(AVDResult) | - setDisplayView: |
设置视频显示窗口 更多... | |
(AVDResult) | - setVideoSource: |
设置视频外部导入数据源 更多... | |
(AVDResult) | - setAudioSource: |
设置音频外部导入数据源 更多... | |
(AVDResult) | - startPreview |
预览本地缺省摄像头视频 更多... | |
(AVDResult) | - stopPreview |
取消预览缺省摄像头视频 更多... | |
(AVDResult) | - switchCamera |
视频切换摄像头 更多... | |
(AVDResult) | - muteMicrophone |
本地麦克风静默 更多... | |
(AVDResult) | - unmuteMicrophone |
本地麦克风静默取消 更多... | |
(AVDResult) | - captureImage: |
抓取直播图像 更多... | |
(AVDResult) | - publisRTMP: |
开始直播 更多... | |
(AVDResult) | - unpublish |
停止直播 更多... | |
(BOOL) | - isInRoom |
判断是否正在连麦中 更多... | |
(AVDResult) | - attachRoom: |
直播开始连麦 更多... | |
(AVDResult) | - detachRoom |
直播停止连麦 更多... | |
(AVDResult) | - setOption:value: |
设置房间选项 更多... | |
(NSString *) | - getOption: |
获取房间选项 更多... | |
((unavailable("init is not a supported initializer for this class.") | - __attribute__ |
类方法 | |
(AVDResult) | + setLivecastId: |
设置直播Id 更多... | |
(AVDLivecast *) | + instance |
获取直播接口 更多... | |
(void) | + destory |
释放直播接口 更多... | |
属性 | |
id< AVDLivecastDelegate > | delegate |
直播回调代理 更多... | |
id< AVDStreamStatsDelegate > | streamStatsdelegate |
直播推流状态回调代理 更多... | |
AVDVideoParams * | videoParams |
视频参数 更多... | |
AVDAudioParams * | audioParams |
音频参数 更多... | |
enum AVDLivecastStatus | status |
直播状态 更多... | |
BOOL | isMicrophoneMute |
麦克风是否mute状态 更多... | |
直播接口类
直播接口定义了直播对象创建和释放、直播功能操作。
- (( unavailable("init is not a supported initializer for this class.") __attribute__ |
在 AVDLivecastViewer , 以及 AVDMainBroadcaster 内被实现.
- (AVDResult) attachRoom: | (AVDEasyRoom *) | room |
直播开始连麦
[in] | room | 互动房间接口。 |
- (AVDResult) captureImage: | (NSInteger) | quality |
抓取直播图像
[in] | fileName | 图像保存地址,绝对地址。 |
[in] | quality | 图像质量:0-100, 0最差,100最好。 |
+ (void) destory |
释放直播接口
- (AVDResult) detachRoom |
直播停止连麦
- (NSString*) getOption: | (enum AVDRoomOption) | type |
获取房间选项
[in] | type | 房间选项类型。 |
- (AVDResult) initContext |
直播对象初始化
[in] | *listener | 回调接口指针。 |
+ (AVDLivecast*) instance |
获取直播接口
- (BOOL) isInRoom |
判断是否正在连麦中
- (AVDResult) muteMicrophone |
本地麦克风静默
- (AVDResult) publisRTMP: | (NSString *) | pushUrl |
开始直播
[in] | pushUrl | 直播rtmp推流地址。 |
- (AVDResult) setAudioSource: | (AVDFakeAudioCapturer *) | acapturer |
设置音频外部导入数据源
[in] | *acapturer | 音频外部导入数据源。 |
- (AVDResult) setDisplayView: | (id< AVDVideoRenderer >) | render |
设置视频显示窗口
[in] | *render | 本地预览render接口。 |
- (AVDResult) setOption: | (enum AVDRoomOption) | type | |
value: | (NSString *) | svalue | |
设置房间选项
[in] | type | 房间选项类型。 |
[in] | svalue | 选项内容,根据选项说明填入。 |
- (AVDResult) setVideoSource: | (AVDFakeVideoCapturer *) | vcapturer |
设置视频外部导入数据源
[in] | *vcapturer | 视频外部导入数据源。 |
- (AVDResult) startPreview |
预览本地缺省摄像头视频
- (AVDResult) stopPreview |
取消预览缺省摄像头视频
- (AVDResult) switchCamera |
视频切换摄像头
- (AVDResult) uninit |
直播对象反初始化
- (AVDResult) unmuteMicrophone |
本地麦克风静默取消
- (AVDResult) unpublish |
|
readwritenonatomicretain |
音频参数
|
readwritenonatomicweak |
直播回调代理
|
readnonatomicassign |
麦克风是否mute状态
|
readnonatomicassign |
直播状态
|
readwritenonatomicweak |
直播推流状态回调代理
|
readwritenonatomicretain |
视频参数