Resize Events

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


.on('fullscreen')

Fired when the player toggles to/from fullscreen.

Returns an object with the following:

ValueDescriptionType
fullscreenThe player's new fullscreen stateBoolean

.on('resize')

Fired when the player's on-page dimensions have changed. Is not fired in response to a fullscreen change.

Returns an object with the following:

ValueDescriptionType
widthThe new width of the playerNumber
heightThe new height of the playerNumber