stopStream method

Future<bool> stopStream()

Implementation

Future<bool> stopStream() async {
  bool ret = await writeCgi("livestream.cgi?streamid=16&substream=0&");
  if (ret == true) {
    var result = await waitCommandResult((cmd, data) {
      return cmd == 24631;
    }, 3);
    ret = result?.isSuccess ?? false;

    return ret;
  }
  return ret;
}