updateDetails method

void updateDetails(
  1. CameraDetails newDetails,
  2. {bool restart = true}
)

Updates the camera's details, which will take effect on the next sendFrame call.

Implementation

void updateDetails(CameraDetails newDetails, {bool restart = true}) {
  details.mergeFromMessage(newDetails);
  if (restart) {
    stop();
    start();
  }
}