15 #import <AVFoundation/AVFoundation.h>
16 #import <Foundation/Foundation.h>
18 #import "EMCallOptions.h"
19 #import "EMCallManagerDelegate.h"
20 #import "EMCallBuilderDelegate.h"
21 #import "EMWaterMarkOption.h"
37 #pragma mark - Delegate
53 delegateQueue:(dispatch_queue_t)aQueue;
81 #pragma mark - Options
109 #pragma mark - Make and Answer and End
129 - (void)startCall:(EMCallType)aType
130 remoteName:(NSString *)aRemoteName
156 - (void)startCall:(EMCallType)aType
157 remoteName:(NSString *)aRemoteName
158 record:(BOOL)isRecord
159 mergeStream:(BOOL)isMerge
179 - (
EMError *)answerIncomingCall:(NSString *)aCallId;
198 - (
EMError *)endCall:(NSString *)aCallId
199 reason:(EMCallEndReason)aReason;
212 #pragma mark - Input Video Data
231 - (void)inputVideoSampleBuffer:(CMSampleBufferRef)aSampleBuffer
232 rotation:(UIDeviceOrientation)aRotation
233 callId:(NSString *)aCallId
234 completion:(
void (^)(
EMError *aError))aCompletionBlock;
255 - (void)inputVideoPixelBuffer:(CVPixelBufferRef)aPixelBuffer
256 sampleBufferTime:(CMTime)aTime
257 rotation:(UIDeviceOrientation)aRotation
258 callId:(NSString *)aCallId
259 completion:(
void (^)(
EMError *aError))aCompletionBlock;
264 - (void)takeLocalVideoPictureWithCallId:(NSString *)aCallId
265 saveToPath:(NSString *)aSavePath
266 completion:(
void (^)(NSString *aFilePath, NSError *aError))aCompletion;
268 - (void)takeRemoteVideoPictureWithCallId:(NSString *)aCallId
269 saveToPath:(NSString *)aSavePath
270 completion:(
void (^)(NSString *aFilePath, NSError *aError))aCompletion;
272 #pragma mark - 自定义音频数据
289 - (int) inputCustomAudioData:(NSData*)data;
290 #pragma mark - Watermark
312 #pragma mark - EM_DEPRECATED_IOS 3.5.2
333 - (void)inputVideoSampleBuffer:(CMSampleBufferRef)aSampleBuffer
334 callId:(NSString *)aCallId
335 format:(EMCallVideoFormat)aFormat
336 rotation:(
int)aRotation
337 completion:(
void (^)(
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete, Use -inputVideoSampleBuffer:rotation:callId:completion:");
358 - (void)inputVideoPixelBuffer:(CVPixelBufferRef)aPixelBuffer
359 callId:(NSString *)aCallId
360 format:(EMCallVideoFormat)aFormat
361 rotation:(
int)aRotation
362 completion:(
void (^)(
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete, Use -inputVideoPixelBuffer:sampleBufferTime:rotation:callId:completion:");
387 - (void)inputVideoData:(NSData *)aData
388 callId:(NSString *)aCallId
389 widthInPixels:(
size_t)aWidth
390 heightInPixels:(
size_t)aHeight
391 format:(EMCallVideoFormat)aFormat
392 rotation:(
int)aRotation
393 completion:(
void (^)(
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete");
396 #pragma mark - EM_DEPRECATED_IOS 3.2.1
412 - (void)startVoiceCall:(NSString *)aUsername
413 completion:(
void (^)(
EMCallSession *aCallSession,
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_1_0, 3_2_0, "Use -[
IEMCallManager startCall:remoteName:ext:completion:]");
429 - (void)startVideoCall:(NSString *)aUsername
430 completion:(
void (^)(
EMCallSession *aCallSession,
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_1_0, 3_2_0, "Use -[
IEMCallManager startCall:remoteName:ext:completion:]");
Definition: EMCallOptions.h:21
Definition: EMCallSession.h:31
Definition: EMCallStream.h:41
Definition: EMWaterMarkOption.h:19
Definition: EMCallBuilderDelegate.h:17
Definition: EMCallManagerDelegate.h:28
Definition: IEMCallManager.h:33
void clearVideoWatermark()
EMCallOptions * getCallOptions()