Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Fix CameraPreview freezes during startVideoRecording on iOS - address…
… review comment
  • Loading branch information
cvolzke4 committed Feb 21, 2019
commit 6dd5e2edd22ba328c957606f962b8030a57ab486
3 changes: 3 additions & 0 deletions packages/camera/lib/camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ class CameraController extends ValueNotifier<CameraValue> {

/// Prepare the capture session for video recording.
///
/// Use of this method is optional, but it may be called for performance
/// reasons on iOS.
///
/// Preparing audio can cause a minor delay in the CameraPreview view on iOS.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: leave an empty line after the first line in dart-doc comments

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

/// If video recording is intended, calling this early eliminates this delay
/// that would otherwise be experienced when video recording is started.
Expand Down