Skip to content
1 change: 1 addition & 0 deletions packages/camera/camera_android_camerax/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT

* Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
* Support video encoding bitrate

## 0.7.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,10 @@ class AndroidCameraCameraX extends CameraPlatform {
);

// Configure VideoCapture and Recorder instances.
recorder = Recorder(qualitySelector: presetQualitySelector);
recorder = Recorder(
qualitySelector: presetQualitySelector,
targetVideoEncodingBitRate: mediaSettings?.videoBitrate,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The MediaSettings class also includes an audioBitrate property. For completeness and parity with other platform implementations (such as camera_android), consider supporting audio encoding bitrate as well if the underlying Recorder wrapper provides a corresponding parameter.

);
videoCapture = VideoCapture.withOutput(
videoOutput: recorder!,
targetFpsRange: _targetFpsRange,
Expand Down