Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Video ended listener when video is ended

Ajay Gaddam
5 years ago Mar 08, 2018 6:05pm
Olli Tietäväinen
5 years ago Mar 09, 2018 7:30am

Currently, the Video component doesn't provide much of a Java API. You would need to create a custom Extension to get such an event out of it. The upside is that it's implemented using a `video` element just like in your example, and thus adding such an event listener shouldn't be that difficult. I guess it would be possible to do it even with just a JavaScript snippet (see https://vaadin.com/docs/v8/framework/advanced/advanced-javascript.html).

-Olli

Naresh B
5 years ago Mar 20, 2018 5:23am
Olli Tietäväinen
5 years ago Mar 20, 2018 6:18am
Naresh B
5 years ago Mar 20, 2018 4:28pm
Olli Tietäväinen
5 years ago Mar 21, 2018 6:53am