takeSnapshotBase64 static method

Future<String> takeSnapshotBase64(
  1. String username,
  2. String password, {
  3. required MediaUri snapshotUri,
})

Implementation

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

  return base64.encode(bytes.toList());
}