AVDLive
Introduction直播管理接口. 直播管理定义引擎中直播的创建、删除、信息获取和直播控制等功能。 Methods
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 直播号。 |