changeVideoFormat method
Implementation
Future<bool> changeVideoFormat(int value, {int timeout = 5}) async {
if (value == null) {
return false;
}
bool ret = await writeCgi(
"trans_cmd_string.cgi?cmd=2105&command=2&videoFormat=$value&mark=112233445566_1234&");
if (ret == true) {
CommandResult result = await waitCommandResult((cmd, data) {
return true;
}, timeout);
if (result.isSuccess) {
videoFormat = value;
}
return result.isSuccess;
}
return false;
}