resize
("resize", (x: number, y: number) => void): this;
Emitted when the width/height in pixels of the video is known, or subsequently changes.
Returns
this
Handler Function
When the resize
event is fired, attached handler functions are called with two arguments, the width and height of the video in pixels.