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')

Fired when a user clicks the video display. 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.

ValueDescription
-No value returned