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

直播观众接口类 更多...

类 AVDLivecastViewer 继承关系图:
AVDLivecast

构造函数

(instancetype) - initWithRoomId:
 
(AVDResult- setBroadcasterId:
 设置直播观众房间主播Id 更多...
 
(AVDResult- watchRoom:render:
 进入直播房间观看 更多...
 
(AVDResult- dialogue
 与主播连麦对话 更多...
 
(NSString *) - getPlayUrl
 for detail viewer imp 更多...
 
(id< AVDVideoRenderer >) - getRender
 获取对讲视频显示对象 更多...
 
((unavailable("init is not a supported initializer for this class.") - __attribute__
 
- 构造函数 继承自 AVDLivecast
(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:
 获取房间选项 更多...
 

类方法

(AVDLivecastViewer *) + obtain:
 获取或创建直播观众房间对象 更多...
 
- 类方法 继承自 AVDLivecast
(AVDResult+ setLivecastId:
 设置直播Id 更多...
 
(AVDLivecast *) + instance
 获取直播接口 更多...
 
(void) + destory
 释放直播接口 更多...
 

属性

id< AVDLivecastViewerDelegatedelegate2
 直播回调代理 更多...
 
- 属性 继承自 AVDLivecast
id< AVDLivecastDelegatedelegate
 直播回调代理 更多...
 
id< AVDStreamStatsDelegatestreamStatsdelegate
 直播推流状态回调代理 更多...
 
AVDVideoParamsvideoParams
 视频参数 更多...
 
AVDAudioParamsaudioParams
 音频参数 更多...
 
enum AVDLivecastStatus status
 直播状态 更多...
 
BOOL isMicrophoneMute
 麦克风是否mute状态 更多...
 

详细描述

直播观众接口类

直播观众接口定义了直播观众对象创建、直播观看和连麦操作。

函数文档

◆ __attribute__()

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

实现了 AVDLivecast.

◆ dialogue()

- (AVDResult) dialogue

与主播连麦对话

返回
返回错误代码。
参见
onDialogueResult

◆ getPlayUrl()

- (NSString*) getPlayUrl

for detail viewer imp

获取直播播放地址

◆ getRender()

- (id<AVDVideoRenderer>) getRender

获取对讲视频显示对象

◆ initWithRoomId:()

- (instancetype) initWithRoomId: (AVDRoomId roomId

◆ obtain:()

+ (AVDLivecastViewer*) obtain: (AVDRoomId roomId

获取或创建直播观众房间对象

参数
[in]roomId直播房间Id。
返回
返回直播主播接口指针。

◆ setBroadcasterId:()

- (AVDResult) setBroadcasterId: (AVDUserId broadcasterId

设置直播观众房间主播Id

注解
获取直播房间对象后需要设置,以便连麦时内部使用

◆ watchRoom:render:()

- (AVDResult) watchRoom: (NSString *)  playUrl
render: (id< AVDVideoRenderer >)  render 

进入直播房间观看

参数
[in]playUrl直播的播放地址。
[in]*render本地预览render接口。
返回
返回错误代码。
参见
onWatchResult

属性说明

◆ delegate2

- (id<AVDLivecastViewerDelegate>) delegate2
readwritenonatomicweak

直播回调代理


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