Resize

These API calls are used to retrieve and update the current player dimensions and fullscreen state.

Endpoints

MethodDescription
.getFullscreen()NA
.getHeight()NA
.getWidth()NA
.resize(width, height)Resizes the player to the specified width and height.


Events

MethodDescription
.on('fullscreen')Fired when the player toggles to/from fullscreen.
.on('resize')Fired when the player's on-page dimensions have changed. Is not fired in response to a fullscreen change.