Is there a way I can control the player and its buttons using the keyboard only - IE and FF?
Thanks
<html>
<head>
<script type="text/javascript" src="flowplayer-3.2.4.min.js"></script>
<script src="flowplayer.controls-3.0.2.js"></script>
<link rel="stylesheet" type="text/css" href="controls-hulu.css"/>
</head>
<body>
Track 1
<a href="00_introduction.mp3" style="display:block;width:500px;height:0;" id="huluPlayer"></a>
<div id="hulu1" class="hulu"></div>
<br/><br/>
Track 2
<a href="05_conclusion.mp3" style="display:block;width:500px;height:0;" id="huluPlayer"></a>
<div id="hulu2" class="hulu"></div>
<script type="text/javascript">
// install everything after page is ready
window.onload = function() {
flowplayer("huluPlayer", "flowplayer-3.2.4.swf", {
// don't start automatically
clip: { autoPlay: false },
audio: {url: 'flowplayer.audio-3.2.1.swf'},
// disable default controls
plugins: {controls: null}
// install HTML controls inside element whose id is "hulu"
})
$f().controls("hulu1", "flowplayer.controls-3.0.2.swf");
$f(1).controls("hulu2", "flowplayer.controls-3.0.2.swf");
};
</script>
</body>
</html>
I cannot see where is my mistake. If I can make it work, I will then add the very good modification you have done for accessibility. Thanks a lot if you can help me...
$f().controls("hulu1", "flowplayer.controls-3.0.2.swf");
$f(1).controls("hulu2", "flowplayer.controls-3.0.2.swf");
playlist: [
// 1st clip
{
url: 'KimAronson-TwentySeconds63617.flv',
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="flowplayer-3.2.4.min.js"></script>
<script src="flowplayer.playlist-3.0.8.min.js"></script>
<script src="flowplayer.controls-3.0.2.js"></script>
<link rel="stylesheet" type="text/css" href="controls-hulu.css"/>
</head>
<body>
<!-- playlist container -->
<div class="entries"> <!-- class "entries" is in controls-hulu.css -->
<a href="#">
<strong>${title}</strong> <br />
</a>
</div>
<!-- player container -->
<div style="width:46px;height:0;" id="player"></div>
<div id="hulu" class="hulu"></div>
<!-- let the rest of page float normally -->
<br clear="all" />
<!-- flowplayer installation and configuration -->
<script language="JavaScript">
flowplayer("player", "flowplayer-3.2.4.swf",{
clip: { autoPlay: false }, //<- I delete the autobuffering, it cause an autoplay with mp3 files
playlist: [
{url: 'file_name_1.mp3', title: 'Track 1'},
{url: 'file_name_2.mp3', title: 'Track 2'}
],
plugins: {controls: null}
}).controls ("hulu", {url: 'flowplayer.controls.3.2.2.swf', wmode: 'transparent', playlist: true}); // wmode:transparent in order to skip the flash during the reading by Jaws
</script>
<!-- initialize playlist -->
<script>
$(function() {
$f().playlist(".entries", {loop: true});
});
</script>
</body>
</html>
The CSS
/* root element should be positioned relatively so that
child elements can be positioned absolutely */
div.hulu {
position:relative;
float:left;
height:40px;
/* black background with a gradient */
background:#000 url(hulu.png) repeat-x 0 -4px;
width:46px;
}
/* play/pause button */
div.hulu a.play, div.hulu a.pause {
position:absolute;
width: 46px;
height: 40px;
display:block;
text-indent:-9999em;
background:url(hulu.png) no-repeat 10px -61px;
cursor:pointer;
border-right:1px solid #000;
}
div.hulu a.play:hover , div.hulu a.play:focus, div.hulu a.play:active {
background-position:10px -105px;
}
/* pause state */
div.hulu a.pause {
background-position:11px -148px;
}
div.hulu a.pause:hover {
background-position:11px -192px;
}
/* the timeline (or "scrubber") */
div.hulu div.track {
display: none;
left:47px;
position:absolute;
cursor:pointer;
width:285px;
border-left:1px solid #999;
height:40px;
}
/* the draggable playhead */
div.hulu div.playhead {
display: none;
position:absolute;
cursor:pointer;
background-color:#4ff;
opacity:0.3;
filter: alpha(opacity=30);
width:3px;
height:40px;
border-right:1px solid #444;
}
/* buffer- and progress bars. upon runtime the width of these elements grows */
div.hulu div.progress, div.hulu div.buffer {
position:absolute;
background-color:#4ff;
width:0px;
height:40px;
}
div.hulu div.buffer {
background-color:#fff;
}
/* time display */
div.hulu div.time {
display: none;
position:absolute;
width:129px;
left:330px;
padding:12px 0;
text-align:center;
border:1px solid #999;
border-width:0 1px;
font-family:futura,"Lucida Grande","bitstream vera sans","trebuchet ms",verdana,arial;
font-size:12px;
color:#fff;
}
/* total duration in time display */
div.hulu div.time strong {
font-weight:normal;
color:#666;
}
/* mute / unmute buttons */
div.hulu a.mute, div.hulu a.unmute {
display:none;
}
.entries{
float: left;
font-family: arial;
font-size:13px;
width:200px;
height:200px;
border: 1px solid #000000;
}
a.entries{
font-family: arial;
font-size:13px;
width:200px;
height:200px;
}