updateDetails method
- CameraDetails newDetails
override
Updates the camera's details, which will take effect on the next sendFrame call.
Implementation
@override
void updateDetails(CameraDetails newDetails) {
super.updateDetails(newDetails);
if (details.status != CameraStatus.CAMERA_ENABLED || camera == null) return;
camera?.setResolution(width: details.resolutionWidth, height: details.resolutionHeight);
camera?.zoom = details.zoom;
camera?.pan = details.pan;
camera?.tilt = details.tilt;
camera?.focus = details.focus;
camera?.autofocus = details.focus;
}