webRtcManager.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //
  2. // webRtcManager.h
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/9/5.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <WebRTC/AMediaStream.h>
  9. #import <WebRTC/RTCMacros.h>
  10. #import <WebRTC/RTCIceCandidate.h>
  11. #import "webRtcMsgModel.h"
  12. #import "USBInsertPopView.h"
  13. #import "addLogObject.h"
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface webRtcManager : NSObject
  16. {
  17. USBInsertPopView *curUSBInsertPopV;
  18. //下载nas相关
  19. customDownloadOperation* curDownloadmodel;
  20. }
  21. /** 实例化对象(单例) */
  22. + (instancetype)shareManager;
  23. @property (nonatomic, strong) AMediaStream *mediaStream;
  24. @property (nonatomic, assign) BOOL didReportWebRtcType;
  25. @property(nonatomic,assign)BOOL isRebootIngType;//是否重启中
  26. @property(nonatomic,assign)BOOL isResetingType;//是否恢复出厂中
  27. @property(nonatomic,assign)BOOL isChangeBoxType;//是否更换盒子
  28. @property(nonatomic,assign)BOOL isLogoutByOtherType;//被挤下线
  29. @property(nonatomic,assign)BOOL isWaitShowLogoutAlert;//隐私模式等待被挤下线弹框是否弹出
  30. @property(nonatomic,assign)BOOL isDiDChangePhoneSizeType;//是否修改了分辨率(如果是 进去云机需要重设解码器)
  31. @property(nonatomic,assign) RTCDataChannelState channelState;
  32. @property(nonatomic,assign) RTCIceConnectionState ConnectionState;
  33. #pragma mark 分类属性
  34. #pragma mark 下载nas文件用到
  35. @property (nonatomic, copy) NSString*nasFullPath;
  36. //下载nas ws 文件 保存到文件 正在弹框中
  37. @property (nonatomic, assign) BOOL isShowingFileDocumentPickerType;
  38. #pragma mark 开始链接
  39. - (void)beginToLinkWebRtcFun;
  40. #pragma mark 重新链接
  41. - (void)relinkWebRtcFun;
  42. #pragma mark 关闭链接
  43. - (void)closeLinkWebRtcFun;
  44. #pragma mark webrtc P2P通道发送消息
  45. - (void)send_data:(NSString *)dataStr;
  46. #pragma mark 获取云机系统镜像等信息
  47. - (void)getSysInfoFun;
  48. #pragma mark 获取云机基本信息
  49. - (void)getBaseInfoFun;
  50. #pragma mark 获取云机剩余空间(包含外挂磁盘)
  51. - (void)getExtraFilesListFun;
  52. #pragma mark 重启云机
  53. - (void)needToRebootFun;
  54. #pragma mark 恢复出厂设置云机
  55. - (void)needToResetFun;
  56. #pragma mark 云机截图保存到云机图库
  57. - (void)screenshotInCloudPhoneFun;
  58. #pragma mark 获取TV投屏状态
  59. - (void)getTvStatusFun;
  60. #pragma mark 关闭TV投屏状态
  61. - (void)offTvFun;
  62. #pragma mark 开启TV投屏状态
  63. - (void)onTvFun;
  64. //创建备份文件夹
  65. - (void)createBackupsFolderBy:(NSString*)backupsDefaultPath;
  66. //获取备份文件夹列表
  67. - (void)getBackupFolderListFun;
  68. #pragma mark 分类方向
  69. #pragma mark nas下载完成
  70. - (void)NasDownloadTaskFinishedNoti:(customDownloadOperation *)nasDownloadOperation;
  71. #pragma mark 上报打洞是否成功
  72. - (void)reportWebRtcRePoportTypeIsChannel:(BOOL)IsChannel withStats:(RTC_OBJC_TYPE(RTCStatisticsReport) *)stats;
  73. @end
  74. NS_ASSUME_NONNULL_END