HyphenateSDK 3.6.3
IEMConferenceManager.h
1 
15 #ifndef IEMConferenceManager_h
16 #define IEMConferenceManager_h
17 
18 #import <Foundation/Foundation.h>
19 #import <AVFoundation/AVFoundation.h>
20 
21 #import "EMCallConference.h"
22 #import "EMConferenceManagerDelegate.h"
23 
24 #import "EMCallVideoView.h"
25 
26 @class EMError;
27 
35 typedef enum {
36  EMConferenceModeNormal = 0,
37  EMConferenceModeLarge,
38 } EMConferenceMode EM_DEPRECATED_IOS(3_1_0, 3_4_3, "Use -DELETE");
39 
47 @protocol IEMConferenceManager <NSObject>
48 
49 @optional
50 
51 #pragma mark - Delegate
52 
66 - (void)addDelegate:(id<EMConferenceManagerDelegate>)aDelegate
67  delegateQueue:(dispatch_queue_t)aQueue;
68 
80 - (void)removeDelegate:(id<EMConferenceManagerDelegate>)aDelegate;
81 
82 #pragma mark - Conference
83 
99 - (void)setAppkey:(NSString *)aAppkey
100  username:(NSString *)aUsername
101  token:(NSString *)aToken;
102 
120 - (NSString *)getMemberNameWithAppkey:(NSString *)aAppkey
121  username:(NSString *)aUserName;
122 
138 - (void)getConference:(NSString *)aConfId
139  password:(NSString *)aPassword
140  completion:(void (^)(EMCallConference *aCall, EMError *aError))aCompletionBlock;
141 
157 - (void)createAndJoinConferenceWithType:(EMConferenceType)aType
158  password:(NSString *)aPassword
159  completion:(void (^)(EMCallConference *aCall, NSString *aPassword, EMError *aError))aCompletionBlock;
160 
161 
181 - (void)createAndJoinConferenceWithType:(EMConferenceType)aType
182  password:(NSString *)aPassword
183  record:(BOOL)isRecord
184  mergeStream:(BOOL)isMerge
185  completion:(void (^)(EMCallConference *aCall, NSString *aPassword, EMError *aError))aCompletionBlock;
186 
208 - (void)createAndJoinConferenceWithType:(EMConferenceType)aType
209  password:(NSString *)aPassword
210  record:(BOOL)isRecord
211  mergeStream:(BOOL)isMerge
212  isSupportWechatMiniProgram:(BOOL)isSupportWechatMiniProgram
213  completion:(void (^)(EMCallConference *aCall, NSString *aPassword, EMError *aError))aCompletionBlock;
214 
230 - (void)joinConferenceWithConfId:(NSString *)aConfId
231  password:(NSString *)aPassword
232  completion:(void (^)(EMCallConference *aCall, EMError *aError))aCompletionBlock;
233 
247 - (void)joinConferenceWithTicket:(NSString *)aTicket
248  completion:(void (^)(EMCallConference *aCall, EMError *aError))aCompletionBlock;
249 
265 - (void)publishConference:(EMCallConference *)aCall
266  streamParam:(EMStreamParam *)aStreamParam
267  completion:(void (^)(NSString *aPubStreamId, EMError *aError))aCompletionBlock;
268 
284 - (void)unpublishConference:(EMCallConference *)aCall
285  streamId:(NSString *)aStreamId
286  completion:(void (^)(EMError *aError))aCompletionBlock;
287 
305 - (void)subscribeConference:(EMCallConference *)aCall
306  streamId:(NSString *)aStreamId
307  remoteVideoView:(EMCallRemoteVideoView *)aRemoteView
308  completion:(void (^)(EMError *aError))aCompletionBlock;
309 
325 - (void)unsubscribeConference:(EMCallConference *)aCall
326  streamId:(NSString *)aStreamId
327  completion:(void (^)(EMError *aError))aCompletionBlock;
328 
354 - (void)changeMemberRoleWithConfId:(NSString *)aConfId
355  member:(EMCallMember *)aMember
356  role:(EMConferenceRole)toRole
357  completion:(void (^)(EMError *aError))aCompletionBlock;
358 
374 - (void)kickMemberWithConfId:(NSString *)aConfId
375  memberNames:(NSArray<NSString *> *)aMemberNameList
376  completion:(void (^)(EMError *aError))aCompletionBlock;
377 
391 - (void)destroyConferenceWithId:(NSString *)aConfId
392  completion:(void (^)(EMError *aError))aCompletionBlock;
393 
407 - (void)leaveConference:(EMCallConference *)aCall
408  completion:(void (^)(EMError *aError))aCompletionBlock;
409 
425 - (void)startMonitorSpeaker:(EMCallConference *)aCall
426  timeInterval:(long long)aTimeMillisecond
427  completion:(void (^)(EMError *aError))aCompletionBlock;
428 
440 - (void)stopMonitorSpeaker:(EMCallConference *)aCall;
441 
442 #pragma mark - Update
443 
455 - (void)updateConferenceWithSwitchCamera:(EMCallConference *)aCall;
456 
470 - (void)updateConference:(EMCallConference *)aCall
471  isMute:(BOOL)aIsMute;
472 
486 - (void)updateConference:(EMCallConference *)aCall
487  enableVideo:(BOOL)aEnableVideo;
488 
506 - (void)updateConference:(EMCallConference *)aCall
507  streamId:(NSString *)aStreamId
508  remoteVideoView:(EMCallRemoteVideoView *)aRemoteView
509  completion:(void (^)(EMError *aError))aCompletionBlock;
510 
524 - (void)updateConference:(EMCallConference *)aCall
525  maxVideoKbps:(int)aMaxVideoKbps;
526 
527 #pragma mark - Input Video Data
528 
547 - (void)inputVideoSampleBuffer:(CMSampleBufferRef)aSampleBuffer
548  rotation:(UIDeviceOrientation)aRotation
549  conference:(EMCallConference *)aCall
550  publishedStreamId:(NSString *)aPubStreamId
551  completion:(void (^)(EMError *aError))aCompletionBlock;
552 
573 - (void)inputVideoPixelBuffer:(CVPixelBufferRef)aPixelBuffer
574  sampleBufferTime:(CMTime)aTime
575  rotation:(UIDeviceOrientation)aRotation
576  conference:(EMCallConference *)aCall
577  publishedStreamId:(NSString *)aPubStreamId
578  completion:(void (^)(EMError *aError))aCompletionBlock;
579 
580 
600 - (void)setConferenceAttribute:(NSString *)attrKey
601  value:(NSString *)attrValue
602  completion:(void(^)(EMError *aError))aCompletionBlock;
603 
621 - (void)deleteAttributeWithKey:(NSString *)aKey
622  completion:(void(^)(EMError *aError))aCompletionBlock;
623 
624 
653 - (EMError *)startAudioMixing:(NSURL *)aFileURL loop:(int)aLoop sendMix:(BOOL)isSendMix;
654 
655 
670 
688 - (EMError *)adjustAudioMixingVolume:(int)aVolume;
689 
690 
704 - (void)muteRemoteAudio:(NSString *)aStreamId mute:(BOOL)isMute;
705 
719 - (void)muteRemoteVideo:(NSString *)aStreamId mute:(BOOL)isMute;
720 
721 
732 - (void)enableStatistics:(BOOL)isEnable;
733 
734 #pragma mark - 自定义音频数据
735 
747 - (int) inputCustomAudioData:(NSData*)data;
748 
749 #pragma mark - EM_DEPRECATED_IOS 3.5.2
750 
772 - (void)inputVideoSampleBuffer:(CMSampleBufferRef)aSampleBuffer
773  conference:(EMCallConference *)aCall
774  publishedStreamId:(NSString *)aPubStreamId
775  format:(EMCallVideoFormat)aFormat
776  rotation:(int)aRotation
777  completion:(void (^)(EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete, Use -inputVideoSampleBuffer:rotation:conference:publishedStreamId:completion:");
778 
800 - (void)inputVideoPixelBuffer:(CVPixelBufferRef)aPixelBuffer
801  conference:(EMCallConference *)aCall
802  publishedStreamId:(NSString *)aPubStreamId
803  format:(EMCallVideoFormat)aFormat
804  rotation:(int)aRotation
805  completion:(void (^)(EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete, Use -inputVideoPixelBuffer:sampleBufferTime:rotation:conference:publishedStreamId:completion:");
806 
832 - (void)inputVideoData:(NSData *)aData
833  conference:(EMCallConference *)aCall
834  publishedStreamId:(NSString *)aPubStreamId
835  widthInPixels:(size_t)aWidth
836  heightInPixels:(size_t)aHeight
837  format:(EMCallVideoFormat)aFormat
838  rotation:(int)aRotation
839  completion:(void (^)(EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete");
840 
841 #pragma mark - EM_DEPRECATED_IOS 3.4.3
842 
850 @property (nonatomic) EMConferenceMode mode EM_DEPRECATED_IOS(3_1_0, 3_4_3, "Use -DELETE");
851 
865 - (void)createAndJoinConferenceWithPassword:(NSString *)aPassword
866  completion:(void (^)(EMCallConference *aCall, NSString *aPassword, EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_1_0, 3_4_3, "Use -[EMConferenceManagerDelegate createAndJoinConferenceWithType:password:completion:]");
867 
887 - (void)inviteUserToJoinConference:(EMCallConference *)aCall
888  userName:(NSString *)aUserName
889  password:(NSString *)aPassword
890  ext:(NSString *)aExt
891  error:(EMError **)pError EM_DEPRECATED_IOS(3_1_0, 3_4_3, "Use -DELETE, 在demo层自定义实现");
892 
893 
911 - (void)changeMemberRoleWithConfId:(NSString *)aConfId
912  memberNames:(NSArray<NSString *> *)aMemberNameList
913  role:(EMConferenceRole)aRole
914  completion:(void (^)(EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_5_0, 3_6_0, "Use -[changeMemberRoleWithConfId:memberName:role:completion]");
915 
916 @end
917 
918 
919 #endif /* IEMConferenceManager_h */
EMStreamParam
Definition: EMCallStream.h:125
-[IEMConferenceManager-p stopAudioMixing]
EMError * stopAudioMixing()
IEMConferenceManager-p
Definition: IEMConferenceManager.h:47
EMCallMember
Definition: EMCallConference.h:38
EMError
Definition: EMError.h:26
EMConferenceManagerDelegate-p
Definition: EMConferenceManagerDelegate.h:36
EMCallRemoteVideoView
Definition: EMCallVideoView.h:41
EMCallConference
Definition: EMCallConference.h:77
-[IEMConferenceManager-p EM_DEPRECATED_IOS]
EMConferenceMode mode EM_DEPRECATED_IOS(3_1_0, 3_4_3, "Use -DELETE")