updateCamera method

Future<void> updateCamera(
  1. String id,
  2. CameraDetails details, {
  3. bool verify = true,
})

Updates settings for the given camera.

Implementation

Future<void> updateCamera(String id, CameraDetails details, {bool verify = true}) async {
	_handshake = null;
	final command = VideoCommand(id: id, details: details);
	models.sockets.video.sendMessage(command);
    if (!verify) return;
	await Future<void>.delayed(const Duration(seconds: 2));
	if (_handshake == null) throw RequestNotAccepted();
}