HyphenateSDK  3.6.1
EMCallEnum.h
1 
15 #ifndef EMCallEnum_h
16 #define EMCallEnum_h
17 
25 typedef enum {
26  EMCallSessionStatusDisconnected = 0,
27  EMCallSessionStatusConnecting = 2,
28  EMCallSessionStatusConnected,
29  EMCallSessionStatusAccepted,
30 } EMCallSessionStatus;
31 
32 typedef EMCallSessionStatus EMCallStatus;
33 
41 typedef enum {
42  EMCallTypeVoice = 0,
43  EMCallTypeVideo,
44 } EMCallType;
45 
53 typedef enum {
54  EMCallEndReasonHangup = 0,
55  EMCallEndReasonNoResponse,
56  EMCallEndReasonDecline,
57  EMCallEndReasonBusy,
58  EMCallEndReasonFailed,
59  EMCallEndReasonUnsupported,
60  EMCallEndReasonRemoteOffline,
61  EMCallEndReasonLoginOtherDevice,
62  EMCallEndReasonDestroy,
63  EMCallEndReasonNotEnable = 101,
64  EMCallEndReasonServiceArrearages,
65  EMCallEndReasonServiceForbidden
66 
67 } EMCallEndReason;
68 
69 typedef enum : NSUInteger {
70  EMConferenceAttributeAdd = 0,
71  EMConferenceAttributeUpdate,
72  EMConferenceAttributeDelete
73 } EMConferenceAttributeAction;
74 
82 typedef enum {
83  EMCallConnectTypeNone = 0,
84  EMCallConnectTypeDirect,
85  EMCallConnectTypeRelay,
86 } EMCallConnectType;
87 
95 typedef enum {
96  EMCallStreamStatusVoicePause = 0,
97  EMCallStreamStatusVoiceResume,
98  EMCallStreamStatusVideoPause,
99  EMCallStreamStatusVideoResume,
100 } EMCallStreamingStatus;
101 
109 typedef enum {
110  EMCallNetworkStatusNormal = 0,
111  EMCallNetworkStatusUnstable,
112  EMCallNetworkStatusNoData,
113 } EMCallNetworkStatus;
114 
122 typedef enum {
123  EMCallVideoResolutionDefault = 0,
124  EMCallVideoResolution352_288,
125  EMCallVideoResolution640_480,
126  EMCallVideoResolution1280_720,
127  EMCallVideoResolutionAdaptive = EMCallVideoResolutionDefault,
128 } EMCallVideoResolution;
129 
137 typedef enum {
138  EMCallVideoFormatNV12 = 0x3231564e,
139  EMCallVideoFormatBGRA = 0x41524742,
140  EMCallVideoFormatARGB = 0x42475241,
141 } EMCallVideoFormat;
142 
143 
144 #pragma mark - EM_DEPRECATED_IOS
145 
152 typedef enum {
153  EMCallStreamControlTypeVoicePause __deprecated_msg("Use EMCallStreamStatusVoicePause") = 0,
154  EMCallStreamControlTypeVoiceResume __deprecated_msg("Use EMCallStreamStatusVoiceResume"),
155  EMCallStreamControlTypeVideoPause __deprecated_msg("Use EMCallStreamStatusVideoPause"),
156  EMCallStreamControlTypeVideoResume __deprecated_msg("Use EMCallStreamStatusVideoResume"),
157 } EMCallStreamControlType __deprecated_msg("Use EMCallStreamingStatus");
158 
159 
160 #endif /* EMCallEnum_h */