onEnded( )


Adds an event handler that runs when playback has ended.

A video ends when playback reaches the duration of the video.

If the video is set to play in a loop, this event handler is never triggered.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(): void The name of the function or the function expression to run when the video has ended.

Returns
Return Type:VideoPlayer
Was this helpful?
Yes
No