feat: 增加分辨率修改

This commit is contained in:
2026-07-21 10:45:06 +08:00
parent 9e5ac91e46
commit de88776fb1
25 changed files with 646 additions and 6 deletions

View File

@@ -13,6 +13,8 @@ enum Action {
KEY = 3;
LONG_PRESS = 4;
MOTION_EVENT = 5;
SET_RESOLUTION = 6; // 控制端请求被控端切换屏幕采集分辨率
REPORT_RESOLUTION = 7; // 被控端上报当前实际采集分辨率(含连接建立后的初始值)
}
// 通过 RTCDataChannel 传输的控制指令protobuf 二进制)。
@@ -38,4 +40,12 @@ message ControlMessage {
// 原始动作MOTION_EVENT对应 Android MotionEvent ACTION_*0=DOWN 1=UP 2=MOVE
int32 motion_action = 11;
// 分辨率切换SET_RESOLUTION
// width 为目标长边/宽度;<=0 表示使用被控端原始native分辨率。
// height 为目标高度;<=0 时按被控端屏幕宽高比基于 width 计算(保留原始比例)。
// fps 为目标帧率;<=0 表示沿用当前帧率。
int32 width = 12;
int32 height = 13;
int32 fps = 14;
}