webRtcManager.h 2.4 KB

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