webRtcManager.h 1.9 KB

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