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.

© 2007-2024 Longtail Ad Solutions, Inc.