AVDLive

Superclass:
NSObject
Declared In:

Introduction

直播管理接口.

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



Methods

-createUserLive:
-deleteLive:
+destory
-findLiveInfos:count:filter:
-getLiveInfo:
+instance
-stopLive:

createUserLive:


- (AVDResult) createUserLive:(AVDLiveInfo*)info; 
Return Value

返回错误代码。 *

参数结构中的音频类型缺省为:ra_user_single:

视频类型缺省为:rv_main * 为异步操作,操作结果在 onCreateUserLive 中返回。 * @sa onCreateUserLive

Discussion

创建特定用户直播 * * @param[in] info 中roomId,name, userid, fileType必须设置;创建成功时id会设置成新创建的直播Id,在异步返回中返回。 *


deleteLive:


- (AVDResult) deleteLive:(AVDLiveId)liveId; 
Return Value

返回错误代码。

为异步操作,操作结果在 onDeleteLive 中返回。:

@sa onDeleteLive

Discussion

删除特定直播

@param[in] liveId 直播号。


destory


+ (AVDResult) destory; 
Discussion

释放AVD直播对象


findLiveInfos:count:filter:


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

返回错误代码。

为异步操作,操作结果在 onLiveInfos 中返回。:

@sa onLiveInfos

Discussion

获取服务器上的直播列表

@param[in] begindex 分页的起始索引。 @param[in] ncount 分页的请求数量。 @param[in] filter 查询条件,以json表示,如:{ "roomId":"hafds2324" }。


getLiveInfo:


- (AVDResult) getLiveInfo:(AVDLiveId)liveId; 
Return Value

返回错误代码。

为异步操作,操作结果在 onLiveInfo 中返回。:

@sa onLiveInfo

Discussion

获取特定直播详细信息

@param[in] liveId 直播号。


instance


+ (AVDLive*) instance; 
Return Value

返回AVD直播指针。

Discussion

获取AVD直播对象

AVD直播是一个单例对象,一个进程空间只存在一个直播。:


stopLive:


- (AVDResult) stopLive:(AVDLiveId)liveId; 
Return Value

返回错误代码。

为异步操作,操作结果在 onStopLive 中返回。:

@sa onStopLive

Discussion

停止特定直播

@param[in] liveId 直播号。