updateCamera method
- String id,
- CameraDetails details, {
- 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();
}