12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // webRtcManager.h
- // 双子星云手机
- //
- // Created by xd h on 2024/9/5.
- //
- #import <Foundation/Foundation.h>
- #import <WebRTC/AMediaStream.h>
- #import <WebRTC/RTCMacros.h>
- #import "webRtcMsgModel.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface webRtcManager : NSObject
- /** 实例化对象(单例) */
- + (instancetype)shareManager;
- @property (nonatomic, strong) AMediaStream *mediaStream;
- @property (nonatomic, assign) BOOL needToReportWebRtcType;
- @property(nonatomic,assign)BOOL isRebootIngType;//是否重启中
- @property(nonatomic,assign)BOOL isResetingType;//是否恢复出厂中
- @property(nonatomic,assign)BOOL isChangeBoxType;//是否更换盒子
- @property(nonatomic,assign)BOOL isLogoutByOtherType;//被挤下线
- @property(nonatomic,assign)BOOL isWaitShowLogoutAlert;//隐私模式等待被挤下线弹框是否弹出
- @property(nonatomic,assign)BOOL isDiDChangePhoneSizeType;//是否修改了分辨率(如果是 进去云机需要重设解码器)
- @property(nonatomic,assign) RTCDataChannelState channelState;
- #pragma mark 开始链接
- - (void)beginToLinkWebRtcFun;
- #pragma mark 重新链接
- - (void)relinkWebRtcFun;
- #pragma mark 关闭链接
- - (void)closeLinkWebRtcFun;
- #pragma mark webrtc P2P通道发送消息
- - (void)send_data:(NSString *)dataStr;
- #pragma mark 获取云机系统镜像等信息
- - (void)getSysInfoFun;
- #pragma mark 获取云机基本信息
- - (void)getBaseInfoFun;
- #pragma mark 获取云机剩余空间(包含外挂磁盘)
- - (void)getExtraFilesListFun;
- #pragma mark 重启云机
- - (void)needToRebootFun;
- #pragma mark 恢复出厂设置云机
- - (void)needToResetFun;
- #pragma mark 获取TV投屏状态
- - (void)getTvStatusFun;
- #pragma mark 关闭TV投屏状态
- - (void)offTvFun;
- #pragma mark 开启TV投屏状态
- - (void)onTvFun;
- //创建备份文件夹
- - (void)createBackupsFolderBy:(NSString*)backupsDefaultPath;
- //获取备份文件夹列表
- - (void)getBackupFolderListFun;
- @end
- NS_ASSUME_NONNULL_END
|