cn.tee3.avd_SDK-Objectc  2.1.0
AVDLive.h
浏览该文件的文档.
1 //
2 // AVDLive.h
3 // avd_sdk
4 //
5 // Created by skin on 15-7-21.
6 // Copyright (c) 2015年 t3ee. All rights reserved.
7 //
8 
9 #ifndef avd_sdk_AVDLive_h
10 #define avd_sdk_AVDLive_h
11 
12 #import "AVDCommon.h"
13 
14 
15 @class AVDLiveInfo;
16 
22 @protocol AVDLiveDelegate<NSObject>
24 
31 - (void) onCreateUserLive:(AVDResult)result info:(AVDLiveInfo*)info;
39 - (void) onStopLive:(AVDResult)result id:(AVDLiveId)liveId;
40 
42 
49 - (void) onLiveInfo:(AVDResult)result info:(AVDLiveInfo*)info;
59 - (void) onLiveInfos:(AVDResult)result total:(NSInteger)total begin:(NSInteger)begin infos:(NSArray*)items;
67 - (void) onDeleteLive:(AVDResult)result id:(AVDLiveId)liveId;
68 
69 @end
70 
71 
77 @interface AVDLive : NSObject
78 
79 
80 @property (nonatomic,weak) id <AVDLiveDelegate>delegate;
87 + (AVDLive*) instance;
90 + (AVDResult) destory;
91 
101 - (AVDResult) createUserLive:(AVDLiveInfo*)info;
109 - (AVDResult) stopLive:(AVDLiveId)liveId;
110 
118 - (AVDResult) getLiveInfo:(AVDLiveId)liveId;
128 - (AVDResult) findLiveInfos:(NSInteger)begindex count:(NSInteger)ncount filter:(NSString*)filter;
136 - (AVDResult) deleteLive:(AVDLiveId)liveId;
137 
138 #ifndef DOXYGEN_SHOULD_SKIP_THIS
139 // Disallow init and don't add to documentation
140 - (id)init __attribute__((
141  unavailable("init is not a supported initializer for this class.")));
142 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
143 
144 @end
145 
146 #endif
AVDLive * instance()
获取AVD直播对象
(unavailable("init is not a supported initializer for this class." __attribute__()
NSInteger AVDResult
Definition: AVDCommon.h:14
AVDResult destory()
释放AVD直播对象
直播回调接口类
Definition: AVDLive.h:22
直播数据结构.
Definition: AVDLiveInfo.h:26
直播管理接口.
Definition: AVDLive.h:77
初始状态
Definition: AVDRoomInfo.h:37
NSString * AVDLiveId
Definition: AVDCommon.h:19
id< AVDLiveDelegate > delegate
直播回调代理
Definition: AVDLive.h:80