//
//  ERTCVideoMeetingTopView.h
//  ERTCDemo
//
//  Created by wangjinlong23 on 2022/5/11.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class ERTCVideoMeetingTopView;
@protocol ERTCVideoMeetingTopViewDelegate <NSObject>

-(void)infoViewClick:(ERTCVideoMeetingTopView *)topView;
-(void)switchSpeakerBtnClick:(ERTCVideoMeetingTopView *)topView speaker:(int)speaker;
-(void)switchCammerBtnClick:(ERTCVideoMeetingTopView *)topView camera:(BOOL)camera;
-(void)exitMeetingBtnClick:(ERTCVideoMeetingTopView *)topView;
@end

@interface ERTCVideoMeetingTopView : UIView

@property (nonatomic, strong) NSString *signUrl;
@property (nonatomic, strong) NSString *meetingId;
@property (nonatomic, strong, nullable) NSTimer *timer;
@property (nonatomic, assign) BOOL isHost; //是否有主持人权限
@property (nonatomic, weak) id<ERTCVideoMeetingTopViewDelegate> delegate;

-(void)switchCammerBtnEnable:(BOOL)enable;
-(void)speakerBtnStateSet:(BOOL)select;
-(void)relayout:(BOOL)isLand;
-(void)exitMeeting;
- (void)showScreenShareButton:(BOOL)show;
- (void)startTimer;
@end

NS_ASSUME_NONNULL_END
