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.
61 lines
1.1 KiB
61 lines
1.1 KiB
![]()
2 years ago
|
//
|
||
|
// TihuManager.h
|
||
|
// tongxin
|
||
|
//
|
||
|
// Created by ecell on 2021/7/29.
|
||
|
// Copyright © 2021 xTT. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import "TihuVideoCallViewController.h"
|
||
|
|
||
|
typedef void(^THCancelBlock)(void);
|
||
|
|
||
|
|
||
|
@interface TihuManager : NSObject
|
||
|
|
||
|
|
||
|
|
||
|
@property (strong, nonatomic) UIViewController *gMianVC;
|
||
|
@property (strong, nonatomic) TihuVideoCallViewController *callViewController;
|
||
|
|
||
|
@property (strong, nonatomic) DeviceVideoConfigModel *thModel;
|
||
|
|
||
|
/**
|
||
|
此次视频通话的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:(DeviceModel *)device userId:(NSString *)dwUserId callback:(THCancelBlock)callback;
|
||
|
|
||
|
|
||
|
- (void)playRing:(NSString *)name;
|
||
|
- (void)stopRing;
|
||
|
|
||
|
- (void)dismissPopView;
|
||
|
|
||
|
@end
|