webRtcPlayerViewController.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // webRtcPlayerViewController.h
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/9/2.
  6. //
  7. #import "BaseViewController.h"
  8. #import <WebRTC/AMediaStream.h>
  9. #import <WebRTC/RTCMacros.h>
  10. #import "UIView+HWCategory.h"
  11. #import "webRtcMsgModel.h"
  12. #import "webRtcPlayerBottomContrView.h"
  13. #import "RcGameWQKeyChain.h"
  14. #import "ComontAlretViewController.h"
  15. #import "UIInterface+HXRotation.h"
  16. #import "errorAlertTool.h"
  17. NS_ASSUME_NONNULL_BEGIN
  18. @interface webRtcPlayerViewController : BaseViewController
  19. {
  20. CGRect startFrame;//悬浮标拖拽用
  21. CGFloat lastVideoWHRate;//上传的流宽高比
  22. BOOL isLanAndPrivacyEnterBackground;//是否是横屏状态进入后台
  23. BOOL didAdjusBtnType;//是否设置过悬浮图标靠边了
  24. ComontAlretViewController *logoutAlertVC;
  25. }
  26. @property(nonatomic,assign) BOOL isLan;//是否是横屏状态
  27. @property (nonatomic, strong) AMediaStream *mediaStream;
  28. @property(nonatomic,strong)UIButton *controlBtn;
  29. @property(nonatomic,strong)webRtcPlayerBottomContrView *bottomContrView;//底部按钮 选项 home 返回
  30. @property (nonatomic,strong) webRtcMsgModel * webRtcMsgMod;
  31. @property(nonatomic,assign) BOOL isCodeSuspendAudioType;//手动暂停播放音乐
  32. @property(nonatomic,copy) NSString* webRtcPlayerSessionId;//进入推流的时间
  33. #pragma mark 重连
  34. - (void)relinkWebRtcFunByBecomeActive;
  35. #pragma mark 退出云机
  36. - (void)exitCloudPhoneFun;
  37. @end
  38. NS_ASSUME_NONNULL_END