-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[camera_web] Add initializeCamera implementation
#4186
[camera_web] Add initializeCamera implementation
#4186
Conversation
| /// [imageFormatGroup] is used to specify the image formatting used. | ||
| /// On Android this defaults to ImageFormat.YUV_420_888 and applies only to the imageStream. | ||
| /// On iOS this defaults to kCVPixelFormatType_32BGRA. | ||
| /// On Web this parameter is currently not supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ditman Should this be reverted for now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, let's add a pass documenting all the web stuff in platform_interface later on, since we need to publish a new version of the platform_interface so the new docs show up in pub.
This reverts commit b8b8c8b.
This comment has been minimized.
This comment has been minimized.
ditman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Let's go!
| ..width = 10 | ||
| ..height = 10; | ||
|
|
||
| final videoElement = getVideoElementWithBlankStream(Size(10, 10)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heck yes, this is great!
Adds
initializeCameraimplementation of the camera platform interface.getVideoSizetoCamera.initializeCameraandonCameraInitializedimplementation.CameraInitializedEventto the camera events stream controller. The event is emitted on theonCameraInitializedstream and includes a camera id, video size, default exposure and focus modes (auto).Part of flutter/flutter#45297.
Pre-launch Checklist
dart format.)[shared_preferences]///).