HyphenateSDK  3.1.4
EMCallSession.h
1 
15 #import <Foundation/Foundation.h>
16 
17 #import "EMCallLocalView.h"
18 #import "EMCallRemoteView.h"
19 
27 typedef enum{
28  EMCallSessionStatusDisconnected = 0,
29  EMCallSessionStatusRinging,
30  EMCallSessionStatusConnecting,
31  EMCallSessionStatusConnected,
32  EMCallSessionStatusAccepted,
33 }EMCallSessionStatus;
34 
42 typedef enum{
43  EMCallTypeVoice = 0,
44  EMCallTypeVideo,
45 }EMCallType;
46 
54 typedef enum{
55  EMCallEndReasonHangup = 0,
56  EMCallEndReasonNoResponse,
57  EMCallEndReasonDecline,
58  EMCallEndReasonBusy,
59  EMCallEndReasonFailed,
60 }EMCallEndReason;
61 
69 typedef enum{
70  EMCallConnectTypeNone = 0,
71  EMCallConnectTypeDirect,
72  EMCallConnectTypeRelay,
73 }EMCallConnectType;
74 
75 
83 typedef enum{
84  EMCallStreamControlTypeVoicePause = 0,
85  EMCallStreamControlTypeVoiceResume,
86  EMCallStreamControlTypeVideoPause,
87  EMCallStreamControlTypeVideoResume,
88 }EMCallStreamControlType;
89 
97 typedef enum{
98  EMCallNetworkStatusNormal = 0,
99  EMCallNetworkStatusUnstable,
100  EMCallNetworkStatusNoData,
101 }EMCallNetworkStatus;
102 
110 @class EMError;
111 @interface EMCallSession : NSObject
112 
120 @property (nonatomic, strong, readonly) NSString *sessionId;
121 
129 @property (nonatomic, strong, readonly) NSString *username;
130 
138 @property (nonatomic, strong, readonly) NSString *remoteUsername;
139 
147 @property (nonatomic, readonly) EMCallType type;
148 
156 @property (nonatomic, readonly) EMCallConnectType connectType;
157 
165 @property (nonatomic, readonly) EMCallSessionStatus status;
166 
174 @property (nonatomic, strong) EMCallLocalView *localVideoView;
175 
183 @property (nonatomic, strong) EMCallRemoteView *remoteVideoView;
184 
196 @property (nonatomic) int videoBitrate;
197 
209 - (int)getVoiceVolume;
210 
222 - (int)getVideoTimedelay;
223 
235 - (int)getVideoFramerate;
236 
248 - (int)getVideoLostcnt;
249 
261 - (int)getVideoWidth;
262 
274 - (int)getVideoHeight;
275 
287 - (int)getVideoRemoteBitrate;
288 
300 - (int)getVideoLocalBitrate;
301 
313 - (void)takeRemotePicture:(NSString *)aFullPath;
314 
326 - (BOOL)startVideoRecord:(NSString*)aPath;
327 
339 - (NSString *)stopVideoRecord;
340 
352 - (void)setCameraBackOrFront:(BOOL)isFont;
353 
354 @end
int getVideoRemoteBitrate()
EMCallLocalView * localVideoView
Definition: EMCallSession.h:174
EMCallRemoteView * remoteVideoView
Definition: EMCallSession.h:183
Definition: EMCallSession.h:111
NSString * remoteUsername
Definition: EMCallSession.h:138
int getVideoFramerate()
Definition: EMCallLocalView.h:11
Definition: EMError.h:26
Definition: EMCallRemoteView.h:11
int getVideoLocalBitrate()
EMCallType type
Definition: EMCallSession.h:147
int videoBitrate
Definition: EMCallSession.h:196
NSString * username
Definition: EMCallSession.h:129
EMCallSessionStatus status
Definition: EMCallSession.h:165
NSString * sessionId
Definition: EMCallSession.h:120
NSString * stopVideoRecord()
EMCallConnectType connectType
Definition: EMCallSession.h:156
int getVideoTimedelay()