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.
58 lines
1.0 KiB
58 lines
1.0 KiB
![]()
2 years ago
|
//
|
||
|
// BRManager.h
|
||
|
// tongxin
|
||
|
//
|
||
|
// Created by ecell on 2020/11/18.
|
||
|
// Copyright © 2020 xTT. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import "VideoViewController.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) DeviceVideoConfigModel *brModel;
|
||
|
|
||
|
/**
|
||
|
此次视频通话的id
|
||
|
*/
|
||
|
@property(nonatomic, strong) NSString * video_id;
|
||
|
|
||
|
/**
|
||
|
是否是对方拨打 默认是 NO
|
||
|
*/
|
||
|
@property (assign, nonatomic) BOOL isReceiveCall;
|
||
|
|
||
|
/**
|
||
|
0: 视频 1:语音
|
||
|
*/
|
||
|
@property (assign, nonatomic) NSInteger callType;
|
||
|
|
||
|
|
||
|
+ (BRManager*)shared;
|
||
|
|
||
|
-(bool)initialize;
|
||
|
|
||
|
-(void)uninitialize;
|
||
|
|
||
|
-(void)login:(NSString *)bairuiId nick:(NSString *) nick;
|
||
|
|
||
|
-(BOOL)isUserLogin;
|
||
|
|
||
|
-(BOOL)queryRemoteUserOnline:(int)userId;
|
||
|
|
||
|
-(void)showCallDialog:(DeviceModel *)user userId:(int)dwUserId callback:(CancelBlock)callback;
|
||
|
|
||
|
|
||
|
|
||
|
@end
|
||
|
|