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

Keyboard Shortcut


How to enable the keyboard shortcut functionality in the jwplayer?

7 Community Answers

Cooper Reid

Best Answer  JW Player Support Agent  

Please download the free version of our player and you’ll see the keyboard shortcuts working fine for you. There is no reason to compile the player from source.
Cooper

View in conversation

MisterNeutron

User  
0 rated :

The keyboard shortcuts are enabled by default (in fact, I'm not sure you could disable them even if you wanted to):

http://support.jwplayer.com/customer/portal/articles/1597259-keyboard-shortcuts

Cooper Reid

JW Player Support Agent  
0 rated :

The keyboard shortcuts are enabled by default. This is support in all desktop browsers other than IE8.
Cooper

zhangwei101010101

User  
0 rated :

Hi Cooper,

I used my index.php and compiled jwplayer files to test it. No keyboard shortcut functionality, such as space for pause/play, was found. Those jwplayer files were compiled from JWPlayer source code, Ant 1.9.4 and Flex SDK 4.6. Please check my index.php to analyze the problem.

The site contains four
-- index.php
-- jwplayer.flash.swf
-- jwplayer.html5.js
-- jwplayer.js

index.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JWPlayer Test</title>
<script type="application/javascript" src="jwplayer.js"></script>
</head>

<body>
<div id="myElement"></div>
<script>
jwplayer("myElement").setup({
file: "http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv"
});
</script>
</body>
</html>

Zhang Wei

MisterNeutron

User  
0 rated :

The keyboard shortcuts work properly in both HTML5 mode and Flash mode. Try them:

http://misterneutron.com/JW6video/

http://misterneutron.com/JW6videoFlash/

Not sure about your recompilation - why are you doing that?

A few other thoughts, maybe not related to this problem. Use HTML5 instead of XHTML Transitional - it's not 2000 any longer. Convert your FLV files to MP4 - FLV is obsolete and unsupported on all mobile devices. The jwplayer.js file is not type "application/javascript" - it's "text/javascript," and in HTML5 that's the default so you don't have to specify a type at all.

Cooper Reid

Best Answer  JW Player Support Agent  
0 rated :

Please download the free version of our player and you’ll see the keyboard shortcuts working fine for you. There is no reason to compile the player from source.
Cooper

zhangwei101010101

User  
0 rated :

Good news. The free version JWPlayer, the recompiled JWPlayer and the URL from Mister Neutron are all working fine with the keyboard shortcut feature today. I am using the player properly.

Thanks.
The end. Zhang.

Cooper Reid

JW Player Support Agent  
0 rated :

Excellent, glad it got worked out.
Cooper

This question has received the maximum number of answers.