[Koha-devel] Re: Koha Sound Events
Darrell Ulm
darrellulm at smfpl.org
Thu Feb 4 17:35:38 CET 2010
Kyle Hall <kyle.m.hall at ...> writes:
>
> Have you thought about using the HTML 5 <audio> tag?
>
> http://html5doctor.com/native-audio-in-the-browser/
>
Kyle,
Yes, the HTML5 did the trick for Mozilla (using 3.6).
It is fast and there is
*no* delay and no page refresh. It just works.
OK, so the *other* browsers don't yet implement it,
but they should if they want
to stay compliant. Koha primarily supports Firefox
so this should not be an issue.
They can play catch up. I just did the following:
<!-- TMPL_IF NAME="soundon" -->
<script type="text/javascript" language="javascript">
if ( get_cookie( "kohastaffsound" ) == "yes" )
{
document.write('<audio src="/intranet-tmpl/prog/sound/beep.wav" autoplay
autobuffer></audio>');
}
</script>
<!-- /TMPL_IF -->
Sound on is the syspref.
The HTML 5 autoplay and especially the autobuffer appear to make it work very
nicely.
Well, I have a bunch of open source sounds (Artistic Licence 2.0) so I can
finish this up and have Galen "soundly" reject it! (Just a joke Galen) :)
-Darrell Ulm
_______________________________________________
Koha-devel mailing list
Koha-devel at nongnu.org
http://lists.nongnu.org/mailman/listinfo/koha-devel
More information about the Koha-devel
mailing list