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"
}
PropertyDescription
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"  
}
PropertyDescription
height numberNew height of the player
type string

Category of resize event



This is always resize

width numberNew width of the player

© 2007- Longtail Ad Solutions, Inc.