Adds an event handler that runs when the playback has ended.
A video ends when the playback reaches the duration
of the video.
If the video is set to play in a loop, this event handler is never triggered.
handler(event: Event): void
The name of the function or
the function expression to run when the video has ended.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.