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] Add implementations for camera_platform_interface package. (flutter#3302)
* First suggestion for camera platform interface
* Remove test coverage folder
* Renamed onLatestImageAvailableHandler definition
* Split CameraEvents into separate streams
* Implemented & tested first parts of method channel implementation
* Remove unused EventChannelMock class
* Add missing unit tests
* Added placeholders in default method channel implementation
* Updated platform interface
* Update packages/camera/camera_platform_interface/lib/src/platform_interface/camera_platform.dart
Co-authored-by: Maurits van Beusekom <[email protected]>
* Add unit test for availableCameras
* Expand availableCameras unit test. Added unit test for takePicture.
* Add unit test for startVideoRecording
* Add unit test for prepareForVideoRecording
* Add unit test for stopVideoRecording
* Add unit test for pauseVideoRecording
* Add unit test for buildView
* WIP: Dart and Android implementation
* Fix formatting
* Have resolution stream replay last value on subscription. Replace stream_transform with rxdart.
* Added reverse method channel to replace event channel. Updated initialise and takePicture implementations for android. WIP implementation for startVideoRecording
* Fixed example app for Android. Removed isRecordingVideo and isStreamingImages from buildView method.
* Added some first tests for camera/camera
* More tests and some feedback
* iOS implementation: Removed standard event channel. Added reverse method channel. Updated initialize method. Added resolution changed event. Updated error reporting to use new method channel.
* Started splitting initialize method
* Finish splitting up initialize for iOS
* Update unit tests
* Fix takePicture method on iOS
* Split initialize method on Android
* Fix video recording on iOS. Updated platform interface.
* Update unit tests
* Update error handling of video methods in iOS code. Make iOS code more consistent.
* Updated startVideoRecording documentation
* Make sure file is returned by stopVideoRecording
* Use correct event-type after initializing
* Fix DartMessenger unit-tests
* Change cast
* Fix formatting
* Fixed tests, formatting and analysis warnings
* Added missing license to Dart files
* Updated CHANGELOG and version
* Added additional unit-tests to platform_interface
* Added more tests
* Formatted code
* Re-added the CameraPreview widget
* Use import/export instead of part implementation
* fixed formatting
* Resolved additional feedback
* Update dependency to git repo
* Depend on pub.dev for camera_platform_interface
* Fix JAVA formatting
* Fix changelog
* Make sure camera package can be published
* Assert when stream methods are called from wrong platform
* Add dev_dependency on plugin_platform_interface package, required by tests.
* Remove pedantic requirement from initialize() method. Remove unnecessary completers.
* Remove dependency on dart:io
* Restrict exposed types from platform interface
* Moved test for image stream in separate file
* Fixed formatting issue
* Fix deprecation warning
* Apply feedback from bparrishMines
* Fix formatting issues
* Removed redundant podspec files
* Removed redundant ios files
* Handle SecurityException
Co-authored-by: Maurits van Beusekom <[email protected]>
Co-authored-by: Maurits van Beusekom <[email protected]>
Co-authored-by: daniel <[email protected]>
Co-authored-by: David Iglesias Teixeira <[email protected]>
Copy file name to clipboardExpand all lines: packages/camera/camera/CHANGELOG.md
+10
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,13 @@
1
+
## 0.6.0
2
+
3
+
As part of implementing federated architecture and making the interface compatible with the web this version contains the following **breaking changes**:
4
+
5
+
Method changes in `CameraController`:
6
+
- The `takePicture` method no longer accepts the `path` parameter, but instead returns the captured image as an instance of the `XFile` class;
7
+
- The `startVideoRecording` method no longer accepts the `filePath`. Instead the recorded video is now returned as a `XFile` instance when the `stopVideoRecording` method completes;
8
+
- The `stopVideoRecording` method now returns the captured video when it completes;
9
+
- Added the `buildPreview` method which is now used to implement the CameraPreview widget.
0 commit comments