html5 canvas video component - detect end of video
Hi,
I am trying to create a HTML5 canvas banner ad with the video component. I want some animation to happen with vector shapes that are part of the ad after the video has stopped playing. So, I need to detect when the video has finished playing.
The code snippets supplied with Animate CC contain code for: play, pause, muting, unmuting and loading a video in the video component. Nothing is supplied for detecting when the video has finished playing.
Does anyone know what code I need to use for this? I'm not very familiar with Javascript, so ideally if possible, I would like a simple straightforward snippet of code to use.
I cannot understand why adobe would leave out a snippet for such an important piece of functionality, such as detecting the end of a video. Any help or advice would be greatly appreciated.
Thanks
