15 #ifndef IEMConferenceManager_h 16 #define IEMConferenceManager_h 18 #import <Foundation/Foundation.h> 19 #import <AVFoundation/AVFoundation.h> 21 #import "EMCallConference.h" 22 #import "EMConferenceManagerDelegate.h" 24 #import "EMCallVideoView.h" 36 EMConferenceModeNormal = 0,
37 EMConferenceModeLarge,
38 } EMConferenceMode EM_DEPRECATED_IOS(3_1_0, 3_4_3,
"Use -DELETE");
51 #pragma mark - Delegate 67 delegateQueue:(dispatch_queue_t)aQueue;
82 #pragma mark - Conference 99 - (void)setAppkey:(NSString *)aAppkey
100 username:(NSString *)aUsername
101 token:(NSString *)aToken;
120 - (NSString *)getMemberNameWithAppkey:(NSString *)aAppkey
121 username:(NSString *)aUserName;
138 - (void)getConference:(NSString *)aConfId
139 password:(NSString *)aPassword
157 - (void)createAndJoinConferenceWithType:(EMConferenceType)aType
158 password:(NSString *)aPassword
181 - (void)createAndJoinConferenceWithType:(EMConferenceType)aType
182 password:(NSString *)aPassword
183 record:(BOOL)isRecord
184 mergeStream:(BOOL)isMerge
202 - (void)joinConferenceWithConfId:(NSString *)aConfId
203 password:(NSString *)aPassword
219 - (void)joinConferenceWithTicket:(NSString *)aTicket
239 completion:(
void (^)(NSString *aPubStreamId,
EMError *aError))aCompletionBlock;
257 streamId:(NSString *)aStreamId
258 completion:(
void (^)(
EMError *aError))aCompletionBlock;
278 streamId:(NSString *)aStreamId
280 completion:(
void (^)(
EMError *aError))aCompletionBlock;
298 streamId:(NSString *)aStreamId
299 completion:(
void (^)(
EMError *aError))aCompletionBlock;
326 - (void)changeMemberRoleWithConfId:(NSString *)aConfId
328 role:(EMConferenceRole)toRole
329 completion:(
void (^)(
EMError *aError))aCompletionBlock;
346 - (void)kickMemberWithConfId:(NSString *)aConfId
347 memberNames:(NSArray<NSString *> *)aMemberNameList
348 completion:(
void (^)(
EMError *aError))aCompletionBlock;
363 - (void)destroyConferenceWithId:(NSString *)aConfId
364 completion:(
void (^)(
EMError *aError))aCompletionBlock;
380 completion:(
void (^)(
EMError *aError))aCompletionBlock;
398 timeInterval:(
long long)aTimeMillisecond
399 completion:(
void (^)(
EMError *aError))aCompletionBlock;
414 #pragma mark - Update 443 isMute:(BOOL)aIsMute;
459 enableVideo:(BOOL)aEnableVideo;
479 streamId:(NSString *)aStreamId
481 completion:(
void (^)(
EMError *aError))aCompletionBlock;
497 maxVideoKbps:(
int)aMaxVideoKbps;
499 #pragma mark - Input Video Data 519 - (void)inputVideoSampleBuffer:(CMSampleBufferRef)aSampleBuffer
520 rotation:(UIDeviceOrientation)aRotation
522 publishedStreamId:(NSString *)aPubStreamId
523 completion:(
void (^)(
EMError *aError))aCompletionBlock;
545 - (void)inputVideoPixelBuffer:(CVPixelBufferRef)aPixelBuffer
546 sampleBufferTime:(CMTime)aTime
547 rotation:(UIDeviceOrientation)aRotation
549 publishedStreamId:(NSString *)aPubStreamId
550 completion:(
void (^)(
EMError *aError))aCompletionBlock;
572 - (void)setConferenceAttribute:(NSString *)attrKey
573 value:(NSString *)attrValue
574 completion:(
void(^)(
EMError *aError))aCompletionBlock;
593 - (void)deleteAttributeWithKey:(NSString *)aKey
594 completion:(
void(^)(
EMError *aError))aCompletionBlock;
625 - (
EMError *)startAudioMixing:(NSURL *)aFileURL loop:(
int)aLoop sendMix:(BOOL)isSendMix;
660 - (
EMError *)adjustAudioMixingVolume:(
int)aVolume;
675 - (void)muteRemoteAudio:(NSString *)aStreamId mute:(BOOL)isMute;
690 - (void)muteRemoteVideo:(NSString *)aStreamId mute:(BOOL)isMute;
703 - (void)enableStatistics:(BOOL)isEnable;
705 #pragma mark - EM_DEPRECATED_IOS 3.5.2 728 - (void)inputVideoSampleBuffer:(CMSampleBufferRef)aSampleBuffer
730 publishedStreamId:(NSString *)aPubStreamId
731 format:(EMCallVideoFormat)aFormat
732 rotation:(
int)aRotation
733 completion:(
void (^)(
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete, Use -inputVideoSampleBuffer:rotation:conference:publishedStreamId:completion:");
756 - (void)inputVideoPixelBuffer:(CVPixelBufferRef)aPixelBuffer
758 publishedStreamId:(NSString *)aPubStreamId
759 format:(EMCallVideoFormat)aFormat
760 rotation:(
int)aRotation
761 completion:(
void (^)(
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete, Use -inputVideoPixelBuffer:sampleBufferTime:rotation:conference:publishedStreamId:completion:");
788 - (void)inputVideoData:(NSData *)aData
790 publishedStreamId:(NSString *)aPubStreamId
791 widthInPixels:(
size_t)aWidth
792 heightInPixels:(
size_t)aHeight
793 format:(EMCallVideoFormat)aFormat
794 rotation:(
int)aRotation
795 completion:(
void (^)(
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_2_2, 3_5_2, "Delete");
797 #pragma mark - EM_DEPRECATED_IOS 3.4.3 806 @property (nonatomic) EMConferenceMode mode
EM_DEPRECATED_IOS(3_1_0, 3_4_3,
"Use -DELETE");
821 - (void)createAndJoinConferenceWithPassword:(NSString *)aPassword
844 userName:(NSString *)aUserName
845 password:(NSString *)aPassword
847 error:(
EMError **)pError EM_DEPRECATED_IOS(3_1_0, 3_4_3, "Use -DELETE, 在demo层自定义实现");
867 - (void)changeMemberRoleWithConfId:(NSString *)aConfId
868 memberNames:(NSArray<NSString *> *)aMemberNameList
869 role:(EMConferenceRole)aRole
870 completion:(
void (^)(
EMError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_5_0, 3_6_0, "Use -[changeMemberRoleWithConfId:memberName:role:completion]");
Definition: EMCallConference.h:77
EMError * stopAudioMixing()
Definition: EMConferenceManagerDelegate.h:36
Definition: IEMConferenceManager.h:47
Definition: EMCallConference.h:38
Definition: EMCallVideoView.h:41
Definition: EMCallStream.h:125
EMConferenceMode mode EM_DEPRECATED_IOS(3_1_0, 3_4_3,"Use -DELETE")