Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
How to make Video widget play/pause when user clicks it.
I was happy to find the setPoster command on the new Video class to make a static image appear until the user chooses to play. That works, the image appears. However the video does not play (or pause) when the user clicks in the image itself (the video display area). The Video player's controls at the bottom do work, but users are used to video players playing/pausing when clicked in the middle of the video image.
I see the play and pause commands on Video class inherited from AbstractMedia class. But where would I invoke those methods, that is, how do I react to the user clicking on the video display? I do not see any ClickListener on Video class as I do on Button.
--Basil Bourque