Uh oh!
There was an error while loading. Please reload this page.
[camera] MediaSettings parameter for createCameraWithSettings - #3586
Conversation
This is main PR. Platform interface's PR is here: #3615 |
hellohuanlin
left a comment
There was a problem hiding this comment.
Thanks for the contribution. This is very nice feature to have. Can you share a video capture after this change?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
MediaSettings.low changed to const MediaSettings(resolutionPreset: ResolutionPreset.low).
| <?code-excerpt "readme_full_example.dart (FullAppExample)"?> | ||
| ```dart | ||
| import 'package:camera/camera.dart'; | ||
| import 'package:camera_platform_interface/camera_platform_interface.dart'; |
| // #docregion FullAppExample | ||
| import 'package:camera/camera.dart'; | ||
| import 'package:camera_platform_interface/camera_platform_interface.dart'; |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| CameraController( | ||
| CameraDescription description, | ||
| this.resolutionPreset, { | ||
| this.enableAudio = true, | ||
| ResolutionPreset resolutionPreset, { | ||
| bool enableAudio = true, | ||
| this.imageFormatGroup, | ||
| }) : mediaSettings = MediaSettings( | ||
| resolutionPreset: resolutionPreset, enableAudio: enableAudio), | ||
| super(CameraValue.uninitialized(description)); |
There was a problem hiding this comment.
This hasn't been addressed.
Sorry, what did you mean? |
stuartmorgan-g
commented
Apr 19, 2024
|
PROGrand
commented
Apr 20, 2024
@stuartmorgan |
This PR is for enabling fps and bitrate control of recorded video.
Allow users to more control over recorded video size.
CameraPlatform.createCameraWithSettingsis added, leaving originalCameraPlatform.createCameracommented as deprecated. So this is not breaking change.Tested on a set of mobile devices.
Web support depends on browser (perfect with Firefox).
Fixesflutter/flutter#54339