MOShowBaseView.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // MOShowBaseView.h
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2024/8/15.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface MOShowBaseView : UIView
  10. @property (weak, nonatomic) IBOutlet UIView *showView;
  11. @property (weak, nonatomic) IBOutlet UILabel *adminLab;
  12. @property (nonatomic, assign) NSInteger num;
  13. @property (weak, nonatomic) IBOutlet UILabel *numLab;
  14. @property (weak, nonatomic) IBOutlet UILabel *nameLab;
  15. @property (weak, nonatomic) IBOutlet UIImageView *goldenImg;
  16. @property (weak, nonatomic) IBOutlet UILabel *goldenNumLab;
  17. @property (weak, nonatomic) IBOutlet UIImageView *seatImgView;
  18. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *seatImgWidth;
  19. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *seatImgHeight;
  20. @property (weak, nonatomic) IBOutlet UIImageView *headImgView;
  21. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *headImgWidth;
  22. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *headImgHeight;
  23. @property (weak, nonatomic) IBOutlet BigBtn *voiceBtn;
  24. @property (nonatomic, copy) void (^viewClickBlock)(MOLinkMic *viewModel, NSInteger num);
  25. @property (nonatomic, copy) void (^voiceClickBlock)(MOLinkMic *viewModel);
  26. @property (nonatomic, copy) void (^goldBtnClickBlock)(MOLinkMic *viewModel);
  27. @property (nonatomic, assign) CGFloat viewWidth;
  28. @property (nonatomic, copy) NSString *roomId;
  29. @property (nonatomic, strong) MOLinkMic *viewData;
  30. @property (nonatomic, strong) MOSettingInfo *settingInfo;
  31. @property (nonatomic, assign) BOOL isSimpleLinkMic; // 是否是单人连麦
  32. @property (nonatomic, assign) BOOL isSimpleShow; // 是否简单展示
  33. + (instancetype)moShowBaseView;
  34. - (void)toOpenShowLocalView;
  35. - (void)toSwitchTheAudience;
  36. - (void)toSetRemoteView;
  37. - (void)toCleanTheView;
  38. - (void)toChangeTheVideoWith:(BOOL)isStop;
  39. - (void)toChangeTheAudioWith:(BOOL)isStop;
  40. - (void)showGiftNumWith:(MORtmEntity *)entity;
  41. - (void)toShowVoiceAnimation;
  42. - (void)halfOneSecondPassed;
  43. - (void)toJudgeTheVoiceBtnHidden;
  44. /// 更新用户的视频状态
  45. - (void)toUpdateTheUserLiveVideoStatusWith:(AgoraVideoRemoteState)videoState And:(AgoraVideoRemoteReason)videoReason And:(NSInteger)uId;
  46. /// 更新用户的音频状态
  47. - (void)toUpdateTheUserLiveAudioStatusWith:(AgoraAudioRemoteState)audioState And:(AgoraAudioRemoteReason)audioReason And:(NSInteger)uId;
  48. @end
  49. NS_ASSUME_NONNULL_END