HyphenateSDK  3.6.1
EMCallSession.h
1 
15 #import <Foundation/Foundation.h>
16 
17 #import "EMCallEnum.h"
18 #import "EMCommonDefs.h"
19 
20 #import "EMCallVideoView.h"
21 
29 @class EMError;
30 @interface EMCallSession : NSObject
31 
39 @property (nonatomic, strong, readonly) NSString *callId;
40 
48 @property (nonatomic, strong, readonly) NSString *localName;
49 
57 @property (nonatomic, readonly) EMCallType type;
58 
66 @property (nonatomic, readonly) BOOL isCaller;
67 
75 @property (nonatomic, strong, readonly) NSString *remoteName;
76 
84 @property (nonatomic, readonly) EMCallSessionStatus status;
85 
93 @property (nonatomic, strong) EMCallLocalVideoView *localVideoView;
94 
102 @property (nonatomic, strong) EMCallRemoteVideoView *remoteVideoView;
103 
104 #pragma mark - Statistics Property
105 
113 @property (nonatomic, readonly) EMCallConnectType connectType;
114 
124 @property (nonatomic, readonly) int videoLatency;
125 
135 @property (nonatomic, readonly) int localVideoFrameRate;
136 
146 @property (nonatomic, readonly) int remoteVideoFrameRate;
147 
157 @property (nonatomic, readonly) int localVideoBitrate;
158 
168 @property (nonatomic, readonly) int remoteVideoBitrate;
169 
179 @property (nonatomic, readonly) int localVideoLostRateInPercent;
180 
190 @property (nonatomic, readonly) int remoteVideoLostRateInPercent;
191 
201 @property (nonatomic, readonly) CGSize remoteVideoResolution;
202 
210 @property (nonatomic, strong, readonly) NSString * serverVideoId;
211 
219 @property (nonatomic, readonly) BOOL willRecord;
220 
221 
233 @property (nonatomic, readonly) NSString *ext;
234 
235 #pragma mark - Control Stream
236 
248 - (EMError *)pauseVoice;
249 
261 - (EMError *)resumeVoice;
262 
274 - (EMError *)pauseVideo;
275 
287 - (EMError *)resumeVideo;
288 
289 #pragma mark - Camera
290 
302 - (void)switchCameraPosition:(BOOL)aIsFrontCamera;
303 
304 @end
NSString * serverVideoId
Definition: EMCallSession.h:210
EMCallRemoteVideoView * remoteVideoView
Definition: EMCallSession.h:102
int localVideoBitrate
Definition: EMCallSession.h:157
NSString * remoteName
Definition: EMCallSession.h:75
BOOL willRecord
Definition: EMCallSession.h:219
Definition: EMCallSession.h:30
EMError * resumeVideo()
NSString * localName
Definition: EMCallSession.h:48
Definition: EMError.h:26
EMCallLocalVideoView * localVideoView
Definition: EMCallSession.h:93
int remoteVideoLostRateInPercent
Definition: EMCallSession.h:190
CGSize remoteVideoResolution
Definition: EMCallSession.h:201
EMCallType type
Definition: EMCallSession.h:57
int videoLatency
Definition: EMCallSession.h:124
EMError * pauseVideo()
EMCallSessionStatus status
Definition: EMCallSession.h:84
BOOL isCaller
Definition: EMCallSession.h:66
int remoteVideoBitrate
Definition: EMCallSession.h:168
Definition: EMCallVideoView.h:41
EMError * resumeVoice()
NSString * callId
Definition: EMCallSession.h:39
EMError * pauseVoice()
int localVideoFrameRate
Definition: EMCallSession.h:135
int localVideoLostRateInPercent
Definition: EMCallSession.h:179
EMCallConnectType connectType
Definition: EMCallSession.h:113
NSString * ext
Definition: EMCallSession.h:233
int remoteVideoFrameRate
Definition: EMCallSession.h:146
Definition: EMCallVideoView.h:27