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
// |
|
// BRManager.h |
|
// tongxin |
|
// |
|
// Created by ecell on 2020/11/18. |
|
// Copyright © 2020 xTT. All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import "VideoViewController.h" |
|
#import "User.h" |
|
|
|
typedef void(^CancelBlock)(void); |
|
|
|
static bool g_isEnterRoom; |
|
|
|
@interface BRManager : NSObject |
|
|
|
|
|
@property (strong, nonatomic) UIViewController *gMianVC; |
|
@property (strong, nonatomic) VideoViewController *callViewController; |
|
|
|
@property (strong, nonatomic) BairuiModel *brModel; |
|
/** |
|
视频的设备对象 |
|
*/ |
|
@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; |
|
|
|
|
|
+ (BRManager*)shared; |
|
|
|
-(bool)initialize; |
|
|
|
-(void)uninitialize; |
|
|
|
-(void)login:(NSNumber *)bairuiId nick:(NSString *) nick; |
|
|
|
-(BOOL)isUserLogin; |
|
|
|
-(BOOL)queryRemoteUserOnline:(int)userId; |
|
|
|
-(void)showCallDialog:(User *)user userId:(int)dwUserId callback:(CancelBlock)callback; |
|
|
|
|
|
|
|
@end |
|
|
|
|