HyphenateSDK  3.7.4
EMCallConference.h
1 
15 #import <Foundation/Foundation.h>
16 
17 typedef NS_ENUM(NSInteger, EMConferenceRole){
18  EMConferenceRoleNone = 0,
19  EMConferenceRoleAudience = 1,
20  EMConferenceRoleSpeaker = 3,
21  EMConferenceRoleAdmin = 7,
22 };
23 
24 typedef NS_ENUM(NSInteger, EMConferenceType){
25  EMConferenceTypeCommunication = 10,
26  EMConferenceTypeLargeCommunication,
27  EMConferenceTypeLive,
28 };
29 
30 typedef NS_ENUM(NSInteger, EMMediaType){
31  EMMediaTypeAudio,
32  EMMediaTypeVideo,
33 };
34 
35 typedef NS_ENUM(NSInteger, EMMediaState){
36  EMMediaStateNormal,
37  EMMediaStateNoData,
38 };
39 
40 typedef NS_ENUM(NSInteger, EMConferenceState) {
41  EMConferenceStateNone = 0,
42  EMConferenceStateTakePicture = 125,
43  EMConferenceStateCustomMsg = 126,
44  EMConferenceStateCtrlMsg = 127,
45  EMConferenceStateResponceMsg = 128,
46  EMConferenceStateUnpub = 130,
47  EMConferenceStateP2PPeerexist = 181,
48  EMConferenceStateOpenCameraFail = 201,
49  EMConferenceStateOpenMicFail = 202,
50  EMConferenceStateTakePictureFail = 203,
51  EMConferenceStateSendFirstAudioFrame = 208,
52  EMConferenceStateSendFirstVideoFrame = 209,
53  EMConferenceStateReceivedFirstAudioFrame = 210,
54  EMConferenceStateReceivedFirstVideoFrame = 211,
55 };
56 
57 
65 @interface CDNCanvas : NSObject
67 @property (nonatomic) NSInteger width;
69 @property (nonatomic) NSInteger height;
72 @property (nonatomic) NSInteger bgclr;
74 @property (nonatomic) NSInteger fps;
76 @property (nonatomic) NSInteger kbps;
78 @property (nonatomic) NSString* codec;
79 
80 @end
81 
89 typedef NS_ENUM(NSInteger, LiveRegionStyle) {
91  LiveRegionStyleFit,
93  LiveRegionStyleFill
94 };
95 
103 @interface LiveRegion : NSObject
104 
106 @property (nonatomic) NSString* streamId;
107 
109 @property (nonatomic) NSInteger x;
110 
112 @property (nonatomic) NSInteger y;
113 
115 @property (nonatomic) NSInteger w;
116 
118 @property (nonatomic) NSInteger h;
119 
121 @property (nonatomic) NSInteger z;
122 
124 @property (nonatomic) LiveRegionStyle style;
125 
126 @end
127 
135 typedef NS_ENUM(NSInteger, LiveAudioBps) {
136  LiveAudioBps_8K = 8000,
137  LiveAudioBps_10K = 10000,
138  LiveAudioBps_15K = 15000,
139  LiveAudioBps_20K = 20000,
140  LiveAudioBps_32K = 32000,
141  LiveAudioBps_36K = 36000,
142  LiveAudioBps_64K = 64000,
143  LiveAudioBps_128K = 128000,
144 };
145 
153 typedef NS_ENUM(NSInteger, LiveAudioSampleRate) {
154  LiveAudioSampleRate_8K = 8000,
155  LiveAudioSampleRate_16K = 16000,
156  LiveAudioSampleRate_32K = 32000,
157  LiveAudioSampleRate_44K = 44100,
158  LiveAudioSampleRate_48K = 48000,
159 };
160 
168 @interface AudioConfig : NSObject
169 
171 @property (nonatomic) LiveAudioBps bps;
172 
174 @property (nonatomic) NSInteger channels;
175 
177 @property (nonatomic) LiveAudioSampleRate samples;
178 
179 @end
180 
181 
189 typedef NS_ENUM(NSInteger, LayoutStyle) {
190  CUSTOM,
191  DEMO,
192  GRID
193 };
194 typedef CDNCanvas LiveCanvas;
202 typedef NS_ENUM(NSInteger, RecordExt) {
203  RecordExtMP3,
204  RecordExtWAV,
205  RecordExtM4A,
206  RecordExtMP4,
207  RecordExtAUTO,
208  RecordExtUNSUPPORTED = RecordExtAUTO,
209 };
217 @interface LiveConfig : NSObject
218 
220 @property (nonatomic,strong) NSString *cdnUrl;
221 
223 @property (nonatomic) LiveCanvas* canvas;
224 
226 @property (nonatomic) LayoutStyle layoutStyle;
227 
229 @property (nonatomic) BOOL record;
230 
232 @property (nonatomic) AudioConfig* audioCfg;
233 
234 @property (nonatomic) RecordExt recordExt;
235 
236 @end
237 
238 
246 @interface EMCallMember : NSObject
247 
255 @property (nonatomic, strong, readonly) NSString *memberId;
256 
257 
265 @property (nonatomic, strong, readonly) NSString *memberName;
266 
274 @property (nonatomic, strong, readonly) NSString *ext;
275 
283 @property (nonatomic, strong, readonly) NSString *nickname;
284 
285 @end
286 
294 @interface EMCallConference : NSObject
295 
303 @property (nonatomic, strong, readonly) NSString *callId;
304 
312 @property (nonatomic, strong, readonly) NSString *confId;
313 
321 @property (nonatomic, strong, readonly) NSString *localName;
322 
330 @property (nonatomic) EMConferenceType type;
331 
339 @property (nonatomic) EMConferenceRole role;
340 
348 @property (nonatomic, strong) NSArray<NSString *> *adminIds;
349 
357 @property (nonatomic, strong) NSArray<NSString *> *speakerIds;
358 
366 @property (nonatomic) NSInteger memberCount;
367 
375 @property (nonatomic) BOOL willRecord;
383 @property (nonatomic) NSString* nickName;
391 @property (nonatomic,strong ,readonly) NSString* memId;
399 @property (nonatomic) NSString* liveId;
407 @property (nonatomic,strong) NSDictionary* liveCfgs;
415 @property (nonatomic) BOOL isCreator;
416 
424 @property (nonatomic) NSInteger audiencesCount;
425 @end
Definition: EMCallConference.h:169
Definition: EMCallConference.h:66
NSInteger kbps
Definition: EMCallConference.h:76
NSInteger height
Definition: EMCallConference.h:69
NSString * codec
Definition: EMCallConference.h:78
NSInteger fps
Definition: EMCallConference.h:74
NSInteger width
Definition: EMCallConference.h:67
NSInteger bgclr
Definition: EMCallConference.h:72
Definition: EMCallConference.h:295
Definition: EMCallConference.h:247
Definition: EMCallConference.h:218
Definition: EMCallConference.h:104