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

直播管理接口. 更多...

类 AVDLive 继承关系图:

构造函数

(AVDResult- createUserLive:
 创建特定用户直播 更多...
 
(AVDResult- stopLive:
 停止特定直播 更多...
 
(AVDResult- getLiveInfo:
 获取特定直播详细信息 更多...
 
(AVDResult- findLiveInfos:count:filter:
 获取服务器上的直播列表 更多...
 
(AVDResult- deleteLive:
 删除特定直播 更多...
 
((unavailable("init is not a supported initializer for this class.") - __attribute__
 

类方法

(AVDLive *) + instance
 获取AVD直播对象 更多...
 
(AVDResult+ destory
 释放AVD直播对象 更多...
 

属性

id< AVDLiveDelegatedelegate
 直播回调代理 更多...
 

详细描述

直播管理接口.

直播管理定义引擎中直播的创建、删除、信息获取和直播控制等功能。

函数文档

◆ __attribute__()

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

◆ createUserLive:()

- (AVDResult) createUserLive: (AVDLiveInfo *)  info

创建特定用户直播

参数
[in]info中roomId,name, userid, fileType必须设置;创建成功时id会设置成新创建的直播Id,在异步返回中返回。
返回
返回错误代码。
注解
参数结构中的音频类型缺省为:ra_user_single 视频类型缺省为:rv_main 为异步操作,操作结果在 onCreateUserLive 中返回。
参见
onCreateUserLive

◆ deleteLive:()

- (AVDResult) deleteLive: (AVDLiveId liveId

删除特定直播

参数
[in]liveId直播号。
返回
返回错误代码。
注解
为异步操作,操作结果在 onDeleteLive 中返回。
参见
onDeleteLive

◆ destory()

+ (AVDResult) destory

释放AVD直播对象

◆ findLiveInfos:count:filter:()

- (AVDResult) findLiveInfos: (NSInteger)  begindex
count: (NSInteger)  ncount
filter: (NSString *)  filter 

获取服务器上的直播列表

参数
[in]begindex分页的起始索引。
[in]ncount分页的请求数量。
[in]filter查询条件,以json表示,如:{ "roomId":"hafds2324" }。
返回
返回错误代码。
注解
为异步操作,操作结果在 onLiveInfos 中返回。
参见
onLiveInfos

◆ getLiveInfo:()

- (AVDResult) getLiveInfo: (AVDLiveId liveId

获取特定直播详细信息

参数
[in]liveId直播号。
返回
返回错误代码。
注解
为异步操作,操作结果在 onLiveInfo 中返回。
参见
onLiveInfo

◆ instance()

+ (AVDLive*) instance

获取AVD直播对象

注解
AVD直播是一个单例对象,一个进程空间只存在一个直播。
返回
返回AVD直播指针。

◆ stopLive:()

- (AVDResult) stopLive: (AVDLiveId liveId

停止特定直播

参数
[in]liveId直播号。
返回
返回错误代码。
注解
为异步操作,操作结果在 onStopLive 中返回。
参见
onStopLive

属性说明

◆ delegate

- (id<AVDLiveDelegate>) delegate
readwritenonatomicweak

直播回调代理


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