feat: 增加分辨率修改
This commit is contained in:
@@ -56,4 +56,16 @@ class ControlCommands {
|
||||
x: x,
|
||||
y: y,
|
||||
);
|
||||
|
||||
/// 分辨率切换指令。
|
||||
/// [width] 目标长边/宽度(<=0 表示被控端原生分辨率);
|
||||
/// [height] 目标高度(<=0 时由被控端按屏幕宽高比计算);
|
||||
/// [fps] 目标帧率(<=0 表示沿用当前帧率)。
|
||||
static ControlMessage setResolution(int width, int height, int fps) =>
|
||||
ControlMessage(
|
||||
action: Action.SET_RESOLUTION,
|
||||
width: width,
|
||||
height: height,
|
||||
fps: fps,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user