startRecordFile method
Implementation
Future<bool> startRecordFile(String recordName, int offset,
{int timeout = 5}) async {
bool ret = await writeCgi(
"livestream.cgi?streamid=4&filename=$recordName&offset=$offset&download=1&",
timeout: timeout);
if (ret) {
//AppTFCardPlayerPlugin.clearTFCardVideoBuf(clientPtr);
CommandResult result = await waitCommandResult((int cmd, Uint8List data) {
return cmd == 24631;
}, timeout);
if (result.isSuccess) {
Map data = result.getMap();
return data["result"] == "0";
}
}
return false;
}