Skip to content

Commit cfa7098

Browse files
Added closeCaptureSession() to stopVideoRecording in Camera.java to fix an Android 6 crash (flutter#3336)
Co-authored-by: Maurits van Beusekom <maurits@baseflow.com>
1 parent 96e2328 commit cfa7098

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.4+1
2+
3+
* Added closeCaptureSession() to stopVideoRecording in Camera.java to fix an Android 6 crash
4+
15
## 0.6.4
26

37
* Adds auto exposure support for Android and iOS implementations.

packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/Camera.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ public void stopVideoRecording(@NonNull final Result result) {
560560

561561
try {
562562
recordingVideo = false;
563+
closeCaptureSession();
563564
mediaRecorder.stop();
564565
mediaRecorder.reset();
565566
startPreview();

packages/camera/camera/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: camera
22
description: A Flutter plugin for getting information about and controlling the
33
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
44
and streaming image buffers to dart.
5-
version: 0.6.4
5+
version: 0.6.4+1
66
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera
77

88
dependencies:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)