HyphenateSDK  3.3.0
EMCallSession.h
1 
15 #import <Foundation/Foundation.h>
16 
17 #import "EMCallLocalView.h"
18 #import "EMCallRemoteView.h"
19 #import "EMCallEnum.h"
20 #import "EMCommonDefs.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) EMCallLocalView *localVideoView;
94 
102 @property (nonatomic, strong) EMCallRemoteView *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 
214 @property (nonatomic, readonly) NSString *ext;
215 
216 #pragma mark - Control Stream
217 
229 - (EMError *)pauseVoice;
230 
242 - (EMError *)resumeVoice;
243 
255 - (EMError *)pauseVideo;
256 
268 - (EMError *)resumeVideo;
269 
270 #pragma mark - Camera
271 
283 - (void)switchCameraPosition:(BOOL)aIsFrontCamera;
284 
285 #pragma mark - EM_DEPRECATED_IOS 3.2.0
286 
294 @property (nonatomic, strong, readonly) NSString *sessionId EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use EMCallSession.callId");
295 
303 @property (nonatomic, strong, readonly) NSString *username EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use EMCallSession.localName");
304 
312 @property (nonatomic, strong, readonly) NSString *remoteUsername EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use EMCallSession.remoteName");
313 
325 @property (nonatomic) int videoBitrate EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use EMCallOptions.videoKbps");
326 
338 - (int)getVoiceVolume EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Delete");
339 
351 - (int)getVideoLatency EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -EMCallSession.videoLatency");
352 
364 - (int)getVideoFrameRate EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoFrameRate");
365 
377 - (int)getVideoLostRateInPercent EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoLostRateInPercent");
378 
390 - (int)getVideoWidth EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoResolution");
391 
403 - (int)getVideoHeight EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoResolution");
404 
416 - (int)getVideoRemoteBitrate EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -EMCallSession.remoteVideoBitrate");
417 
429 - (int)getVideoLocalBitrate EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -EMCallSession.localVideoBitrate");
430 
442 - (void)screenCaptureToFilePath:(NSString *)aPath
443  error:(EMError**)pError EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMPluginVideoRecorder screenCaptureToFilePath:error:]");
444 
460 - (void)startVideoRecordingToFilePath:(NSString*)aPath
461  error:(EMError**)aError EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMPluginVideoRecorder startVideoRecordingToFilePath:error]");
462 
475 - (NSString *)stopVideoRecording:(EMError**)aError EM_DEPRECATED_IOS(3_1_0, 3_1_5, "Use -[EMPluginVideoRecorder stopVideoRecording:]");
476 
477 #pragma mark - EM_DEPRECATED_IOS < 3.2.0
478 
490 - (int)getVideoTimedelay __deprecated_msg("Use -getVideoLatency");
491 
503 - (int)getVideoFramerate __deprecated_msg("Use -getVideoFrameRate");
504 
516 - (int)getVideoLostcnt __deprecated_msg("Use -getVideoLostRateInPercent");
517 
529 - (void)takeRemotePicture:(NSString *)aFullPath __deprecated_msg("Use -screenCaptureToFilePath:");
530 
542 - (BOOL)startVideoRecord:(NSString*)aPath __deprecated_msg("Use startVideoRecordingToFilePath:error:");
543 
555 - (NSString *)stopVideoRecord __deprecated_msg("Use -stopVideoRecording:");
556 
568 - (void)setCameraBackOrFront:(BOOL)isFont __deprecated_msg("Use -switchCameraPosition:");
569 
570 
571 @end
int localVideoBitrate
Definition: EMCallSession.h:157
NSString * remoteName
Definition: EMCallSession.h:75
EMCallLocalView * localVideoView
Definition: EMCallSession.h:93
EMCallRemoteView * remoteVideoView
Definition: EMCallSession.h:102
Definition: EMCallSession.h:30
EMError * resumeVideo()
NSString * localName
Definition: EMCallSession.h:48
"Use -getVideoLatency" __deprecated_msg()
Definition: EMCallLocalView.h:21
Definition: EMError.h:26
Definition: EMCallRemoteView.h:20
int remoteVideoLostRateInPercent
Definition: EMCallSession.h:190
3_1_0, 3_1_5,"Delete" EM_DEPRECATED_IOS()
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
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:214
int remoteVideoFrameRate
Definition: EMCallSession.h:146