diff --git a/packages/camera/camera/CHANGELOG.md b/packages/camera/camera/CHANGELOG.md index d018f494199..37a5aaec4e4 100644 --- a/packages/camera/camera/CHANGELOG.md +++ b/packages/camera/camera/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.11.1 + +* Adds support for image streaming from windows platforms. + ## 0.11.0+2 * Updates minimum supported SDK version to Flutter 3.19/Dart 3.3. diff --git a/packages/camera/camera/lib/src/camera_controller.dart b/packages/camera/camera/lib/src/camera_controller.dart index 5f90a0a740a..5421b5a188c 100644 --- a/packages/camera/camera/lib/src/camera_controller.dart +++ b/packages/camera/camera/lib/src/camera_controller.dart @@ -480,13 +480,14 @@ class CameraController extends ValueNotifier { /// Throws a [CameraException] if image streaming or video recording has /// already started. /// - /// The `startImageStream` method is only available on Android and iOS (other + /// The `startImageStream` method is only available on Android, iOS and Windows (other /// platforms won't be supported in current setup). /// // TODO(bmparr): Add settings for resolution and fps. Future startImageStream(onLatestImageAvailable onAvailable) async { assert(defaultTargetPlatform == TargetPlatform.android || - defaultTargetPlatform == TargetPlatform.iOS); + defaultTargetPlatform == TargetPlatform.iOS || + defaultTargetPlatform == TargetPlatform.windows); _throwIfNotInitialized('startImageStream'); if (value.isRecordingVideo) { throw CameraException( @@ -518,11 +519,12 @@ class CameraController extends ValueNotifier { /// Throws a [CameraException] if image streaming was not started or video /// recording was started. /// - /// The `stopImageStream` method is only available on Android and iOS (other + /// The `stopImageStream` method is only available on Android, iOS and Windows (other /// platforms won't be supported in current setup). Future stopImageStream() async { assert(defaultTargetPlatform == TargetPlatform.android || - defaultTargetPlatform == TargetPlatform.iOS); + defaultTargetPlatform == TargetPlatform.iOS || + defaultTargetPlatform == TargetPlatform.windows); _throwIfNotInitialized('stopImageStream'); if (!value.isStreamingImages) { throw CameraException( diff --git a/packages/camera/camera/pubspec.yaml b/packages/camera/camera/pubspec.yaml index 931f091bbdc..8742f5255d0 100644 --- a/packages/camera/camera/pubspec.yaml +++ b/packages/camera/camera/pubspec.yaml @@ -4,7 +4,7 @@ description: A Flutter plugin for controlling the camera. Supports previewing Dart. repository: https://github.com/flutter/packages/tree/main/packages/camera/camera issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22 -version: 0.11.0+2 +version: 0.11.1 environment: sdk: ^3.3.0