You can use the keys on your keyboard to let the player go to the next or previous songs.
in /jetty/????/webapp/WEB-INF/jsp you go to playlist.jsp.
Under
- Code: Select all
<body class="bgcolor2 playlistframe" onload="init()">
You add
- Code: Select all
<body onKeyDown="showKeyCode(event)">
Under
- Code: Select all
<script type="text/javascript" language="javascript">
var player = null;
var songs = null;
var currentAlbumUrl = null;
var currentStreamUrl = null;
var startPlayer = false;
var repeatEnabled = false;
var slider = null;
You add
- Code: Select all
function showKeyCode(event) {
if(event.keyCode == 176) {
javascript:noop();
onNext(false);
}
if(event.keyCode == 177) {
javascript:noop();
onPrevious();
}
}
Save it and reload your browser.
This only works if the browser is an activewindow..
To check other keys add
- Code: Select all
alert(event.keyCode);
Under
- Code: Select all
function showKeyCode(event) {
Your Suggestions are welcome.
Robert