You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.2 KiB
66 lines
1.2 KiB
// |
|
// TihuManager.h |
|
// tongxin |
|
// |
|
// Created by ecell on 2021/7/29. |
|
// Copyright © 2021 xTT. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import "TihuVideoCallViewController.h" |
|
#import "TihuModel.h" |
|
#import "Device.h" |
|
#import "User.h" |
|
|
|
typedef void(^THCancelBlock)(void); |
|
|
|
|
|
@interface TihuManager : NSObject |
|
|
|
|
|
|
|
@property (strong, nonatomic) UIViewController *gMianVC; |
|
@property (strong, nonatomic) TihuVideoCallViewController *callViewController; |
|
|
|
@property (strong, nonatomic) TihuModel *thModel; |
|
/** |
|
视频的设备对象 |
|
*/ |
|
@property(nonatomic, strong) Device * device; |
|
/** |
|
此次视频通话的id |
|
*/ |
|
@property(nonatomic, strong) NSString * video_id; |
|
|
|
/** |
|
是否是对方拨打 默认是 NO |
|
*/ |
|
@property (assign, nonatomic) BOOL isReceiveCall; |
|
|
|
/** |
|
0: 视频 1:语音 |
|
*/ |
|
@property (assign, nonatomic) int callType; |
|
|
|
|
|
+ (TihuManager*)shared; |
|
|
|
-(bool)initialize; |
|
|
|
-(void)uninitialize; |
|
|
|
-(void)login:(NSString *)tihuId pwd:(NSString *) pwd; |
|
|
|
-(BOOL)isUserLogin; |
|
|
|
-(BOOL)queryRemoteUserOnline:(NSString *)userId callback:(UserOnlineBlock)callback; |
|
|
|
-(void)showCallDialog:(Device *)device userId:(NSString *)dwUserId callback:(THCancelBlock)callback; |
|
|
|
|
|
- (void)playRing:(NSString *)name; |
|
- (void)stopRing; |
|
|
|
- (void)dismissPopView; |
|
|
|
@end
|
|
|