-
Notifications
You must be signed in to change notification settings - Fork 5
feat(camera_web): add camera options #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(camera_web): add camera options #2
Conversation
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.
LGTM, My only specific concern is that the FacingMode constraint definition is a little bit too complex (compared to the VideoSize constraint, which also has an "ideal" value).
Also: why is the VideoConstraints toJson async? It doesn't seem to need to be!
One last thing about naming of classes in this file, I'd add the "Constraint" surname to those that don't have it already: FacingModeConstraint and VideoSizeConstraint, that way it's very clear that we're creating CameraOptions from BlahBlahConstraint objects.
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.
This LGTM! Powerful enough to express whatever we need, and easily extensible. 🚀
|
Closing, moved to flutter/plugins#4164. |
Description
getUserMedia.Type of Change