webRtcPlayerViewController.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #import "iPhone.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface webRtcPlayerViewController : BaseViewController
  20. {
  21. CGRect startFrame;//悬浮标拖拽用
  22. CGFloat lastVideoWHRate;//上传的流宽高比
  23. BOOL isLanAndPrivacyEnterBackground;//是否是横屏状态进入后台
  24. BOOL didAdjusBtnType;//是否设置过悬浮图标靠边了
  25. ComontAlretViewController *logoutAlertVC;
  26. }
  27. @property(nonatomic,assign) BOOL isLan;//是否是横屏状态
  28. @property (nonatomic, strong) AMediaStream *mediaStream;
  29. @property(nonatomic,strong)UIButton *controlBtn;
  30. @property(nonatomic,strong)webRtcPlayerBottomContrView *bottomContrView;//底部按钮 选项 home 返回
  31. @property (nonatomic,strong) webRtcMsgModel * webRtcMsgMod;
  32. @property(nonatomic,assign) BOOL isCodeSuspendAudioType;//手动暂停播放音乐
  33. @property(nonatomic,copy) NSString* webRtcPlayerSessionId;//进入推流的时间
  34. #pragma mark 重连
  35. - (void)relinkWebRtcFunByBecomeActive;
  36. #pragma mark 退出云机
  37. - (void)exitCloudPhoneFun:(BOOL)needPreLink;
  38. #pragma mark 预连接开始拉流
  39. - (void)setPrelinkPlay;
  40. @end
  41. NS_ASSUME_NONNULL_END