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:
Value | Description |
---|---|
controls boolean | New 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.
Value | Description |
---|---|
- | No value returned |