You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[camera] Change default Android implementation from camera_android to camera_android_camerax (flutter#6629)
Breaking change: Changes default Android implementation from `camera_android` to `camera_android_camerax` via a breaking change and updates relevant documentation.
~<ins>**Note:**</ins> Planning to land this after flutter/packages#6608, as it is a semi-crucial fix.~ Done :)
Copy file name to clipboardExpand all lines: packages/camera/camera/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,10 @@ Change the minimum Android sdk version to 21 (or higher) in your `android/app/bu
45
45
minSdkVersion 21
46
46
```
47
47
48
-
It's important to note that the `MediaRecorder` class is not working properly on emulators, as stated in the documentation: https://developer.android.com/reference/android/media/MediaRecorder. Specifically, when recording a video with sound enabled and trying to play it back, the duration won't be correct and you will only see the first frame.
48
+
The endorsed [`camera_android_camerax`][2] implementation of the camera plugin built with CameraX has
49
+
better support for more devices than `camera_android`, but has some limitations; please see [this list][3]
50
+
for more details. If you wish to use the [`camera_android`][4] implementation of the camera plugin
51
+
built with Camera2 that lacks these limitations, please follow [these instructions][5].
49
52
50
53
### Web integration
51
54
@@ -167,3 +170,7 @@ class _CameraAppState extends State<CameraApp> {
167
170
For a more elaborate usage example see [here](https://github.com/flutter/packages/tree/main/packages/camera/camera/example).
0 commit comments