Resize Events

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


.on('fullscreen')

Fires when the player toggles to/from fullscreen

{
  "fullscreen": false,
  "type": "fullscreen"
}
Property Description
fullscreen boolean Whether the player display is in fullscreen mode

Possible Values:
  • true
  • false
type string Category of resize event

This is always fullscreen.

.on('resize')

Fires when the player's on-page dimensions have changed

πŸ“˜

The .on('resize') event is not fired in response to a fullscreen change.


{  
  "width": 1920,  
  "height": 1080,  
  "type": "resize"  
}
Property Description
height number New height of the player
type string Category of resize event

This is always resize
width number New width of the player