Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Add spacebar controll


Is there any option to add the very pupular function to pause/play a video with space? In fullscreen?

Without this otion i can't use this player.

3 Community Answers

Todd

JW Player Support Agent  
0 rated :

Understood. We are working on an implementation for keyboard controls, but we are not able to confirm the date this functionality will be available.

Hope this helps,
Todd

v...

User  
0 rated :

you could try: [gist: https://gist.github.com/moimikey/b3aaaf5850708dee6714]

```
jwplayer('selector').setup
onPlaylist: function () {
$(document).on('keydown', function (evt) {
keycode = evt.keyCode ? evt.keyCode : evt.which;
if (keycode === 32) jwplayer('selector').play()
});
}
```

or rather than $(document), the jwplayer div directly.

Todd

JW Player Support Agent  
0 rated :

That would also work.

This question has received the maximum number of answers.