Control Events

This API call allows developers to interact with the built-in player controls (control bar and display icons).

πŸ“˜

Controls will still fade out during playback if the video has no keyboard/mouse focus. When controls are disabled, JW Player is completely chrome-less.



.on('controls')

Fired when controls are enabled or disabled by a script.

Returns an object with the following:

ValueDescription
controls booleanNew state of the controls.


.on('displayClick')

Fires when a user clicks the video display

This is especially useful for wiring your own controls when the built-in ones are disabled.

πŸ“˜

The default click action (toggling play/pause) will still occur if controls are enabled.

{
    "type": "displayClick"
}
Property Description
type string Category of player event

This is always displayClick for this event.