onPlay( )
Adds an event handler that runs when playback is started or restarted.
A video can be played by a user clicking the video player's
play button or by calling its play()
function.
Method Declaration
Copy
Method Parameters
handlerfunctionRequired
handler(): void The name of the function or the function expression to run when the video is played.
Returns
Return Type:VideoPlayer
Was this helpful?
Yes
No