Accessing the device camera using Vaadin 14

Hi,

I’m trying to develop a web project with Vaadin 14.4.4 that can access the device camera and allow screenshots.
There are several plugins in the Vaadin directory to provide camera access but none of them are compatible with Vaadin 14.

Is there any way to access the device camera in a Vaadin app?

https://cookbook.vaadin.com/camera could work as a starting point.

Thanks for the answer Olli but some packages are cannot be imported.
It seems that Vaadin does not recognize following packages:

import com.vaadin.recipes.recipe.Metadata;
import com.vaadin.recipes.recipe.Recipe;

What am I missing?

You can remove the Metadata annotation and replace the Recipe to a Div.
These 2 classes are specific to the cookbook.