JXMeetingObject.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #import <UIKit/UIKit.h>
  2. @class AudioCallViewController;
  3. @class VideoCallViewController;
  4. @class MessagesViewController;
  5. @class ChatViewController;
  6. @class ContactsViewController;
  7. @interface JXMeetingObject:NSObject{
  8. BOOL scheduleRegistration;
  9. BOOL nativeABChangedWhileInBackground;
  10. BOOL multitaskingSupported;
  11. BOOL _showConnResult;//显示连接结果
  12. UIAlertView *_alert;
  13. NSTimeInterval _lastConnectTime;
  14. int _count;
  15. NSTimer* _timer;
  16. int _checkCount;
  17. JXMessageObject* _msg;
  18. }
  19. -(id)init;
  20. -(void)onNetworkEvent:(NSNotification*)notification;
  21. -(void)onNativeContactEvent:(NSNotification*)notification;
  22. -(void)onStackEvent:(NSNotification*)notification;
  23. -(void)onRegistrationEvent:(NSNotification*)notification;
  24. -(void)onMessagingEvent:(NSNotification*)notification;
  25. -(void)onInviteEvent:(NSNotification*)notification;
  26. -(NSString*)getVideoSize;
  27. -(void)startMeeting;
  28. -(void)stopMeeting;
  29. -(void)saveMeetingId:(JXUserObject*)user;
  30. -(void)doTerminate;
  31. -(void)clearMemory;
  32. -(void)setCodecForWebChat:(BOOL)isOpen;//WEB视频单聊需要,WEB视频会议不需要
  33. -(void) MicrophoneCheck;
  34. -(void)doNotify:(UILocalNotification *)notification;
  35. -(void)meetingDidEnterBackground:(UIApplication *)application;
  36. - (void)meetingWillEnterForeground:(UIApplication *)application;
  37. -(void)sendAsk:(int)type toUserId:(NSString*)toUserId toUserName:(NSString*)toUserName meetUrl:(NSString *)meetUrl;
  38. -(void)sendReady:(int)type toUserId:(NSString*)toUserId toUserName:(NSString*)toUserName;
  39. -(void)sendAccept:(int)type toUserId:(NSString*)toUserId toUserName:(NSString*)toUserName objectId:(NSString *)objectId;
  40. -(void)sendCancel:(int)type toUserId:(NSString*)toUserId toUserName:(NSString*)toUserName;
  41. -(void)sendNoAnswer:(int)type toUserId:(NSString*)toUserId toUserName:(NSString*)toUserName;
  42. -(void)sendEnd:(int)type toUserId:(NSString*)toUserId toUserName:(NSString*)toUserName timeLen:(int)timeLen;
  43. -(void)sendMeetingInvite:(NSString*)toUserId toUserName:(NSString*)toUserName roomJid:(NSString*)roomJid callId:(NSString*)callId type:(int)type;
  44. -(void)doSendMsg:(int)type content:(NSString*)content toUserId:(NSString*)toUserId toUserName:(NSString*)toUserName;
  45. -(void)doSendGroupMsg:(int)type content:(NSString*)content toUserId:(NSString*)toUserId;
  46. -(BOOL)startAudioMeeting: (NSString*) remoteUri roomJid:(NSString*)roomJid;
  47. -(BOOL)startVideoMeeting: (NSString*) remoteUri roomJid:(NSString*)roomJid;
  48. @property (nonatomic, strong) ContactsViewController *contactsViewController;
  49. @property (nonatomic, strong) MessagesViewController *messagesViewController;
  50. @property (nonatomic, strong) AudioCallViewController *audioCallController;
  51. @property (nonatomic, strong) VideoCallViewController *videoCallController;
  52. @property (nonatomic, strong) ChatViewController *chatViewController;
  53. @property (getter=isConnected) BOOL connected;
  54. @property (nonatomic, assign) BOOL isMeeting;
  55. @property (nonatomic, assign) BOOL hasAnswer;
  56. @property (nonatomic,copy) NSString *roomNum;
  57. -(void)showAutoConnect;
  58. -(void)checkAutoConnect;
  59. -(BOOL)connect;
  60. @end