takeSnapshotFile static method

Future<void> takeSnapshotFile(
  1. String username,
  2. String password, {
  3. required MediaUri snapshotUri,
  4. required File fileStore,
})

Implementation

static Future<void> takeSnapshotFile(String username, String password,
    {required MediaUri snapshotUri, required File fileStore}) async {
  final bytes = await OnvifUtil.takeSnapshot(username, password,
      snapshotUri: snapshotUri);

  await fileStore.writeAsBytes(bytes);
}