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:
Value | Description | Type |
---|---|---|
fullscreen | The player's new fullscreen state | Boolean |
.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:
Value | Description | Type |
---|---|---|
width | The new width of the player | Number |
height | The new height of the player | Number |