videoDoubleTap method
双击坐标放大
Implementation
Future<bool> videoDoubleTap(int width, int height, int doublex, int doubley,
{int timeout = 5}) async {
bool ret = await writeCgi(
"trans_cmd_string.cgi?cmd=2163&command=0&mark=112233445566_1234&width=$width&height=$height&x=$doublex&y=$doubley&");
if (ret == true) {
CommandResult result = await waitCommandResult((cmd, data) {
return cmd == 24785;
}, timeout);
if (result.isSuccess) {
return result.isSuccess;
}
}
return false;
}