Skip to content
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

Add camera summary section #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add camera summary section #1

wants to merge 1 commit into from

Conversation

beaufortfrancois
Copy link

@beaufortfrancois beaufortfrancois commented Jan 27, 2022

This PR is just a way for me to start playing with this cool demo. It adds a "Camera Summary" section at the bottom right of the web app to display information such as Manufacturer, Model, Version, Serial Number, Capture Formats,
Display Formats, Device Capabilities, Storage Devices Summary, etc.

@beaufortfrancois
Copy link
Author

@RReverser Please have a look.

@@ -84,6 +84,16 @@ class Context {
});
}

val summary() {
return gpp_rethrow([=]() {
val result = val::object();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I'd probably avoid the object and just return the string, converted to val, directly.

@RReverser
Copy link
Collaborator

Left one nit above. Overall I think this serves as a good example of integrating other APIs, but I'm not sure we should show it in the UI because the "summary" text is pretty verbose on real cameras. Additionally, the most interesting information from the summary - camera model, serial number, etc. - is already exposed via individual fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants