
Keyboard Shortcut
How to enable the keyboard shortcut functionality in the jwplayer?
How to enable the keyboard shortcut functionality in the jwplayer?
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
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
The keyboard shortcuts are enabled by default. This is support in all desktop browsers other than IE8.
Cooper
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
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.
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
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.
Excellent, glad it got worked out.
Cooper