duration
("duration", (number) => void): this;
Emitted when the duration of the video is known, or subsequently changes.
Returns
this
Handler Function
When the duration
event is fired, attached handler functions are called with a single argument, the duration of the video in milliseconds.